Skip to content

Commit ba2816a

Browse files
committed
Added an assert to piEnqueueKernelLaunch() when the GlobalWorkOffset!=0.
GlobalWorkOffset is not currently supported in Level Zero. Now the function will assert if someone tries to use it. Signed-off-by: Gail Lyons <[email protected]>
1 parent 4b5308a commit ba2816a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2614,6 +2614,7 @@ 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);
26172618

26182619
ze_group_count_t ZeThreadGroupDimensions{1, 1, 1};
26192620
uint32_t WG[3];

0 commit comments

Comments
 (0)