We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50e9820 + 0020880 commit 1abe526Copy full SHA for 1abe526
source/adapters/native_cpu/enqueue.cpp
@@ -244,15 +244,17 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
244
#endif // NATIVECPU_USE_OCK
245
event->set_futures(futures);
246
247
- *phEvent = event;
+ if (phEvent) {
248
+ *phEvent = event;
249
+ }
250
event->set_callback([hKernel, event]() {
251
event->tick_end();
252
// TODO: avoid calling clear() here.
253
hKernel->_localArgInfo.clear();
254
});
255
256
if (hQueue->isInOrder()) {
- urEventWait(1, phEvent);
257
+ urEventWait(1, &event);
258
}
259
260
return UR_RESULT_SUCCESS;
0 commit comments