Skip to content
Snippets Groups Projects
Commit e5fc8d7d authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix initialization of vectors in reduction.

parent 942e7d61
No related branches found
No related tags found
No related merge requests found
......@@ -134,6 +134,10 @@ def dtype_to_type_context(dtype):
return 'd'
if dtype in [np.float32, np.complex64]:
return 'f'
from pyopencl.array import vec
if dtype in vec.types.values():
return dtype_to_type_context(dtype.fields["x"][0])
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment