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

[CL backend] Fix enabling of fp64 extension

parent a9bf2c52
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,8 @@ def opencl_preamble_generator(preamble_info): ...@@ -191,7 +191,8 @@ def opencl_preamble_generator(preamble_info):
has_double = False has_double = False
for dtype in preamble_info.seen_dtypes: for dtype in preamble_info.seen_dtypes:
if dtype in [np.float64, np.complex128]: if (isinstance(dtype, NumpyType)
and dtype.numpy_dtype in [np.float64, np.complex128]):
has_double = True has_double = True
if has_double: if has_double:
......
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