Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions sycl/plugins/level_zero/pi_level_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2956,15 +2956,18 @@ piEnqueueKernelLaunch(pi_queue Queue, pi_kernel Kernel, pi_uint32 WorkDim,

// Error handling for non-uniform group size case
if (GlobalWorkSize[0] != (ZeThreadGroupDimensions.groupCountX * WG[0])) {
zePrint("piEnqueueKernelLaunch: invalid work_dim. The range is not a multiple of the group size in the 3rd dimension\n");
zePrint("piEnqueueKernelLaunch: invalid work_dim. The range is not a "
"multiple of the group size in the 3rd dimension\n");
return PI_INVALID_WORK_GROUP_SIZE;
}
if (GlobalWorkSize[1] != (ZeThreadGroupDimensions.groupCountY * WG[1])) {
zePrint("piEnqueueKernelLaunch: invalid work_dim. The range is not a multiple of the group size in the 3rd dimension\n");
zePrint("piEnqueueKernelLaunch: invalid work_dim. The range is not a "
"multiple of the group size in the 3rd dimension\n");
return PI_INVALID_WORK_GROUP_SIZE;
}
if (GlobalWorkSize[2] != (ZeThreadGroupDimensions.groupCountZ * WG[2])) {
zePrint("piEnqueueKernelLaunch: invalid work_dim. The range is not a multiple of the group size in the 3rd dimension\n");
zePrint("piEnqueueKernelLaunch: invalid work_dim. The range is not a "
"multiple of the group size in the 3rd dimension\n");
return PI_INVALID_WORK_GROUP_SIZE;
}

Expand Down