Skip to content

Commit 771af62

Browse files
Hugh Delaneycallumfare
authored andcommitted
Remove duplicate entry points
get_program is the same as getProgram.
1 parent 1d7dbbd commit 771af62

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

source/adapters/cuda/kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ urKernelGetGroupInfo(ur_kernel_handle_t hKernel, ur_device_handle_t hDevice,
9393
case UR_KERNEL_GROUP_INFO_COMPILE_WORK_GROUP_SIZE: {
9494
size_t GroupSize[3] = {0, 0, 0};
9595
const auto &ReqdWGSizeMDMap =
96-
hKernel->get_program()->KernelReqdWorkGroupSizeMD;
96+
hKernel->getProgram()->KernelReqdWorkGroupSizeMD;
9797
const auto ReqdWGSizeMD = ReqdWGSizeMDMap.find(hKernel->getName());
9898
if (ReqdWGSizeMD != ReqdWGSizeMDMap.end()) {
9999
const auto ReqdWGSize = ReqdWGSizeMD->second;
@@ -222,7 +222,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelGetInfo(ur_kernel_handle_t hKernel,
222222
case UR_KERNEL_INFO_CONTEXT:
223223
return ReturnValue(hKernel->getContext());
224224
case UR_KERNEL_INFO_PROGRAM:
225-
return ReturnValue(hKernel->get_program());
225+
return ReturnValue(hKernel->getProgram());
226226
case UR_KERNEL_INFO_ATTRIBUTES:
227227
return ReturnValue("");
228228
case UR_KERNEL_INFO_NUM_REGS: {

source/adapters/cuda/kernel.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,14 @@ struct ur_kernel_handle_t_ {
178178
urContextRelease(Context);
179179
}
180180

181-
ur_program_handle_t get_program() const noexcept { return Program; }
182-
183181
uint32_t incrementReferenceCount() noexcept { return ++RefCount; }
184182

185183
uint32_t decrementReferenceCount() noexcept { return --RefCount; }
186184

187185
uint32_t getReferenceCount() const noexcept { return RefCount; }
188186

189187
native_type get() const noexcept { return Function; };
188+
190189
ur_program_handle_t getProgram() const noexcept { return Program; };
191190

192191
native_type get_with_offset_parameter() const noexcept {

0 commit comments

Comments
 (0)