Skip to content

Commit cd48622

Browse files
committed
Add not-implemented code for level zero & HIP plugins
1 parent 2fc07a4 commit cd48622

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

sycl/plugins/cuda/pi_cuda.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2549,7 +2549,6 @@ pi_result cuda_piKernelGetGroupInfo(pi_kernel kernel, pi_device device,
25492549
pi_uint64(bytes));
25502550
}
25512551
case PI_KERNEL_GROUP_INFO_NUM_REGS: {
2552-
// OpenCL PRIVATE == CUDA LOCAL
25532552
int bytes = 0;
25542553
cl::sycl::detail::pi::assertion(
25552554
cuFuncGetAttribute(&bytes, CU_FUNC_ATTRIBUTE_NUM_REGS,

sycl/plugins/hip/pi_hip.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3129,6 +3129,12 @@ pi_result hip_piKernelGetGroupInfo(pi_kernel kernel, pi_device device,
31293129
return getInfo(param_value_size, param_value, param_value_size_ret,
31303130
pi_uint64(bytes));
31313131
}
3132+
case PI_KERNEL_GROUP_INFO_NUM_REGS: {
3133+
cl::sycl::detail::pi::die("PI_KERNEL_GROUP_INFO_NUM_REGS in "
3134+
"piKernelGetGroupInfo not implemented\n");
3135+
return {};
3136+
}
3137+
31323138
default:
31333139
__SYCL_PI_HANDLE_UNKNOWN_PARAM_NAME(param_name);
31343140
}

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4258,6 +4258,10 @@ pi_result piKernelGetGroupInfo(pi_kernel Kernel, pi_device Device,
42584258
}
42594259
case PI_KERNEL_GROUP_INFO_PRIVATE_MEM_SIZE:
42604260
return ReturnValue(pi_uint32{Kernel->ZeKernelProperties->privateMemSize});
4261+
case PI_KERNEL_GROUP_INFO_NUM_REGS: {
4262+
die("PI_KERNEL_GROUP_INFO_NUM_REGS in piKernelGetGroupInfo not implemented\n");
4263+
break;
4264+
}
42614265
default:
42624266
zePrint("Unknown ParamName in piKernelGetGroupInfo: ParamName=%d(0x%x)\n",
42634267
ParamName, ParamName);

0 commit comments

Comments
 (0)