Skip to content
Snippets Groups Projects
Commit 611b2dc4 authored by Nick Curtis's avatar Nick Curtis
Browse files

add opencl ref

parent d5773d77
No related branches found
No related tags found
No related merge requests found
...@@ -136,6 +136,7 @@ def get_le_neutral(dtype): ...@@ -136,6 +136,7 @@ def get_le_neutral(dtype):
# OpenCL 1.1, section 6.11.2 # OpenCL 1.1, section 6.11.2
return var("INFINITY") return var("INFINITY")
elif dtype.numpy_dtype.kind == "i": elif dtype.numpy_dtype.kind == "i":
# OpenCL 1.1, section 6.11.3
if dtype.numpy_dtype.itemsize == 4: if dtype.numpy_dtype.itemsize == 4:
#32 bit integer #32 bit integer
return var("INT_MAX") return var("INT_MAX")
......
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