Skip to content
Snippets Groups Projects
Commit 3d9e0c6d authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'fix-opencl' into 'master'

Fix OpenCL for CUDA OpenCL by avoid int(...) constructor

See merge request pycodegen/pystencils!102
parents d3fce803 637684c1
1 merge request!102Fix OpenCL for CUDA OpenCL by avoid int(...) constructor
Pipeline #20277 passed with stages
in 2 minutes and 46 seconds
...@@ -73,7 +73,7 @@ class OpenClSympyPrinter(CudaSympyPrinter): ...@@ -73,7 +73,7 @@ class OpenClSympyPrinter(CudaSympyPrinter):
function_name, dimension = tuple(symbol_name.split(".")) function_name, dimension = tuple(symbol_name.split("."))
dimension = self.DIMENSION_MAPPING[dimension] dimension = self.DIMENSION_MAPPING[dimension]
function_name = self.INDEXING_FUNCTION_MAPPING[function_name] function_name = self.INDEXING_FUNCTION_MAPPING[function_name]
return f"int({function_name}({dimension}))" return f"(int) {function_name}({dimension})"
def _print_TextureAccess(self, node): def _print_TextureAccess(self, node):
raise NotImplementedError() raise NotImplementedError()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment