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 a1f5bc2 + 48d5db8 commit 12d3748Copy full SHA for 12d3748
source/adapters/cuda/enqueue.cpp
@@ -535,7 +535,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueCooperativeKernelLaunchExp(
535
const size_t *pGlobalWorkOffset, const size_t *pGlobalWorkSize,
536
const size_t *pLocalWorkSize, uint32_t numEventsInWaitList,
537
const ur_event_handle_t *phEventWaitList, ur_event_handle_t *phEvent) {
538
- if (*pGlobalWorkOffset == 0 || pGlobalWorkOffset == nullptr) {
+ if (pGlobalWorkOffset == nullptr || *pGlobalWorkOffset == 0) {
539
ur_exp_launch_property_t coop_prop;
540
coop_prop.id = UR_EXP_LAUNCH_PROPERTY_ID_COOPERATIVE;
541
coop_prop.value.cooperative = 1;
0 commit comments