You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Halide's Buffer has the method device_wrap_native. In case of OpenCL it supposed to be used for wrapping externally created cl_mem object. But it is not possible to create cl_mem object in case of JIT because cl_context is not available and halide_acquire_cl_context can't be overridden.
So, the questions is: is it possible to retrieve cl_context(and cl_command_queue) or provide it for Halide JIT?
This discussion was converted from issue #5450 on November 24, 2020 00:39.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Halide's
Buffer
has the methoddevice_wrap_native
. In case of OpenCL it supposed to be used for wrapping externally created cl_mem object. But it is not possible to create cl_mem object in case of JIT because cl_context is not available and halide_acquire_cl_context can't be overridden.So, the questions is: is it possible to retrieve cl_context(and cl_command_queue) or provide it for Halide JIT?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions