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?
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Halide's
Bufferhas 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