Skip to content

Commit 19d9290

Browse files
committed
bytes -> numRegs in piKernelGetGroupInfo
1 parent e832639 commit 19d9290

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/plugins/cuda/pi_cuda.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,12 +2549,12 @@ pi_result cuda_piKernelGetGroupInfo(pi_kernel kernel, pi_device device,
25492549
pi_uint64(bytes));
25502550
}
25512551
case PI_KERNEL_GROUP_INFO_NUM_REGS: {
2552-
int bytes = 0;
2552+
int numRegs = 0;
25532553
cl::sycl::detail::pi::assertion(
2554-
cuFuncGetAttribute(&bytes, CU_FUNC_ATTRIBUTE_NUM_REGS,
2554+
cuFuncGetAttribute(&numRegs, CU_FUNC_ATTRIBUTE_NUM_REGS,
25552555
kernel->get()) == CUDA_SUCCESS);
25562556
return getInfo(param_value_size, param_value, param_value_size_ret,
2557-
pi_uint32(bytes));
2557+
pi_uint32(numRegs));
25582558
}
25592559
default:
25602560
__SYCL_PI_HANDLE_UNKNOWN_PARAM_NAME(param_name);

0 commit comments

Comments
 (0)