diff --git a/source/adapters/cuda/kernel.cpp b/source/adapters/cuda/kernel.cpp index 07fdf348a6..d43bd046dc 100644 --- a/source/adapters/cuda/kernel.cpp +++ b/source/adapters/cuda/kernel.cpp @@ -93,7 +93,7 @@ urKernelGetGroupInfo(ur_kernel_handle_t hKernel, ur_device_handle_t hDevice, case UR_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE: { size_t GroupSize[3] = {0, 0, 0}; const auto &ReqdWGSizeMDMap = - hKernel->get_program()->KernelReqdWorkGroupSizeMD; + hKernel->getProgram()->KernelReqdWorkGroupSizeMD; const auto ReqdWGSizeMD = ReqdWGSizeMDMap.find(hKernel->getName()); if (ReqdWGSizeMD != ReqdWGSizeMDMap.end()) { const auto ReqdWGSize = ReqdWGSizeMD->second; @@ -222,7 +222,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelGetInfo(ur_kernel_handle_t hKernel, case UR_KERNEL_INFO_CONTEXT: return ReturnValue(hKernel->getContext()); case UR_KERNEL_INFO_PROGRAM: - return ReturnValue(hKernel->get_program()); + return ReturnValue(hKernel->getProgram()); case UR_KERNEL_INFO_ATTRIBUTES: return ReturnValue(""); case UR_KERNEL_INFO_NUM_REGS: { diff --git a/source/adapters/cuda/kernel.hpp b/source/adapters/cuda/kernel.hpp index b7a7358b27..808b1abe9e 100644 --- a/source/adapters/cuda/kernel.hpp +++ b/source/adapters/cuda/kernel.hpp @@ -178,8 +178,6 @@ struct ur_kernel_handle_t_ { urContextRelease(Context); } - ur_program_handle_t get_program() const noexcept { return Program; } - uint32_t incrementReferenceCount() noexcept { return ++RefCount; } uint32_t decrementReferenceCount() noexcept { return --RefCount; } @@ -187,6 +185,7 @@ struct ur_kernel_handle_t_ { uint32_t getReferenceCount() const noexcept { return RefCount; } native_type get() const noexcept { return Function; }; + ur_program_handle_t getProgram() const noexcept { return Program; }; native_type get_with_offset_parameter() const noexcept {