Commit 637684c1 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

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

Prefer c-style cast instead.
parent 296de5db
......@@ -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