From 0e3670891aa7113b8b3f50e9c942d10959613fac Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Mon, 16 Dec 2019 11:03:12 +0100 Subject: [PATCH] Add TODO --- src/pystencils_autodiff/framework_integration/printer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pystencils_autodiff/framework_integration/printer.py b/src/pystencils_autodiff/framework_integration/printer.py index 2b5a413..173104e 100644 --- a/src/pystencils_autodiff/framework_integration/printer.py +++ b/src/pystencils_autodiff/framework_integration/printer.py @@ -49,6 +49,7 @@ class FrameworkIntegrationPrinter(pystencils.backends.cbackend.CBackend): shape = list(written_fields)[0].spatial_shape # assert all(shape == f.shape for f in written_fields) + # TODO(seitz): this is not correct for indexed kernels! block_and_thread_numbers = function.indexing.call_parameters(shape) launch_blocks = 'dim3{' + ', '.join(self.sympy_printer.doprint(i) for i in block_and_thread_numbers['block']) + '}' -- GitLab