diff --git a/dace/codegen/cppunparse.py b/dace/codegen/cppunparse.py index edeb5270ca..e315254ad1 100644 --- a/dace/codegen/cppunparse.py +++ b/dace/codegen/cppunparse.py @@ -349,6 +349,8 @@ def _Assign(self, t): # if the veclen is greater than one, this should be defined with a vector data type self.write("{}{} ".format(dace.dtypes._OCL_VECTOR_TYPES[inferred_type.type], inferred_type.veclen)) + elif self.language == dace.dtypes.Language.OpenCL: + self.write(dace.dtypes._OCL_TYPES[inferred_type.type] + " ") else: self.write(dace.dtypes._CTYPES[inferred_type.type] + " ") else: