Skip to content

Commit

Permalink
[L0] Return sizeof(size_t) bytes of data.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacault committed Dec 13, 2024
1 parent 0466887 commit b59501e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/adapters/level_zero/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,13 @@ ur_result_t urKernelGetGroupInfo(
(ZeKernelDevice, &kernelProperties));
if (ZeResult || workGroupProperties.maxGroupSize == 0) {
return ReturnValue(
uint64_t{Device->ZeDeviceComputeProperties->maxTotalGroupSize});
size_t{Device->ZeDeviceComputeProperties->maxTotalGroupSize});
}
return ReturnValue(workGroupProperties.maxGroupSize);
// Specification states this returns a size_t.
return ReturnValue(size_t{workGroupProperties.maxGroupSize});
} else {
return ReturnValue(
uint64_t{Device->ZeDeviceComputeProperties->maxTotalGroupSize});
size_t{Device->ZeDeviceComputeProperties->maxTotalGroupSize});
}
}
case UR_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE: {
Expand Down

0 comments on commit b59501e

Please sign in to comment.