Skip to content

Commit 183585c

Browse files
committed
Incorporating code review comments
Signed-off-by: Gail Lyons <[email protected]>
1 parent ba2816a commit 183585c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2614,7 +2614,11 @@ piEnqueueKernelLaunch(pi_queue Queue, pi_kernel Kernel, pi_uint32 WorkDim,
26142614
assert(Kernel);
26152615
assert(Queue);
26162616
assert((WorkDim > 0) && (WorkDim < 4));
2617-
assert(GlobalWorkOffset[0] == 0);
2617+
if (GlobalWorkOffset != NULL) {
2618+
for(pi_uint32 i=0; i<WorkDim; i++) {
2619+
assert(GlobalWorkOffset[i] == 0);
2620+
}
2621+
}
26182622

26192623
ze_group_count_t ZeThreadGroupDimensions{1, 1, 1};
26202624
uint32_t WG[3];

0 commit comments

Comments
 (0)