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

[pybind] Add pypy workaround for enqueue_fill_buffer

parent c50765f3
No related branches found
No related tags found
1 merge request!44Pybind11
Pipeline #13125 passed with warnings
......@@ -1831,6 +1831,10 @@ def enqueue_fill_buffer(queue, mem, pattern, offset, size, wait_for=None):
from warnings import warn
warn("The context for this queue does not declare OpenCL 1.2 support, so "
"the next thing you might see is a crash")
if _PYPY and isinstance(pattern, np.generic):
pattern = np.asarray(pattern)
return _cl._enqueue_fill_buffer(queue, mem, pattern, offset, size, wait_for)
# }}}
......
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