Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/adapters/cuda/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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: {
Expand Down
3 changes: 1 addition & 2 deletions source/adapters/cuda/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,14 @@ 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; }

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 {
Expand Down