Skip to content

Commit ca012c6

Browse files
authored
[SYCL] Fix the return data type for subgroup info queries. (#2453)
Signed-off-by: rbegam <[email protected]>
1 parent 2aab337 commit ca012c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,13 +2754,13 @@ pi_result piKernelGetSubGroupInfo(pi_kernel Kernel, pi_device Device,
27542754
ReturnHelper ReturnValue(ParamValueSize, ParamValue, ParamValueSizeRet);
27552755

27562756
if (ParamName == PI_KERNEL_MAX_SUB_GROUP_SIZE) {
2757-
ReturnValue(size_t{ZeKernelProperties.maxSubgroupSize});
2757+
ReturnValue(uint32_t{ZeKernelProperties.maxSubgroupSize});
27582758
} else if (ParamName == PI_KERNEL_MAX_NUM_SUB_GROUPS) {
2759-
ReturnValue(size_t{ZeKernelProperties.maxNumSubgroups});
2759+
ReturnValue(uint32_t{ZeKernelProperties.maxNumSubgroups});
27602760
} else if (ParamName == PI_KERNEL_COMPILE_NUM_SUB_GROUPS) {
2761-
ReturnValue(size_t{ZeKernelProperties.requiredNumSubGroups});
2761+
ReturnValue(uint32_t{ZeKernelProperties.requiredNumSubGroups});
27622762
} else if (ParamName == PI_KERNEL_COMPILE_SUB_GROUP_SIZE_INTEL) {
2763-
ReturnValue(size_t{ZeKernelProperties.requiredSubgroupSize});
2763+
ReturnValue(uint32_t{ZeKernelProperties.requiredSubgroupSize});
27642764
} else {
27652765
die("piKernelGetSubGroupInfo: parameter not implemented");
27662766
return {};

0 commit comments

Comments
 (0)