Skip to content

Commit

Permalink
Fix cppunparse for OpenCL types
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Nov 8, 2024
1 parent 11f557e commit a1e1eed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dace/codegen/cppunparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a1e1eed

Please sign in to comment.