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
......@@ -73,7 +73,7 @@ class OpenClSympyPrinter(CudaSympyPrinter):
function_name, dimension = tuple(symbol_name.split("."))
dimension = self.DIMENSION_MAPPING[dimension]
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):
raise NotImplementedError()
Markdown is supported
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