Skip to content

Commit 2aa9cc3

Browse files
[SYCL][L0] Return maximum group size in L0 for info::kernel_device_specific::work_group_size (#7693)
Level-zero currently implements kernel.get_info<info::kernel_device_specific::work_group_size> by calling zeKernelSuggestGroupSize which gives a group size suggestion based on a global size. This seems to be against specification where the descriptor requires the maximum work items available for execution in a group Signed-off-by: Rauf, Rana <[email protected]> --------- Co-authored-by: smaslov-intel <[email protected]>
1 parent aaae334 commit 2aa9cc3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5375,10 +5375,9 @@ pi_result piKernelGetGroupInfo(pi_kernel Kernel, pi_device Device,
53755375
return ReturnValue(WorkSize);
53765376
}
53775377
case PI_KERNEL_GROUP_INFO_WORK_GROUP_SIZE: {
5378-
uint32_t X, Y, Z;
5379-
ZE_CALL(zeKernelSuggestGroupSize,
5380-
(Kernel->ZeKernel, 10000, 10000, 10000, &X, &Y, &Z));
5381-
return ReturnValue(size_t{X * Y * Z});
5378+
// As of right now, L0 is missing API to query kernel and device specific max work group size.
5379+
return ReturnValue(
5380+
pi_uint64{Device->ZeDeviceComputeProperties->maxTotalGroupSize});
53825381
}
53835382
case PI_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE: {
53845383
struct {

0 commit comments

Comments
 (0)