Skip to content

Commit 69d3c7e

Browse files
Removed DPCTLKernel_GetName as unused
1 parent 90a453a commit 69d3c7e

File tree

4 files changed

+0
-29
lines changed

4 files changed

+0
-29
lines changed

dpctl/_backend.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ cdef extern from "syclinterface/dpctl_sycl_event_interface.h":
262262

263263
cdef extern from "syclinterface/dpctl_sycl_kernel_interface.h":
264264
cdef size_t DPCTLKernel_GetNumArgs(const DPCTLSyclKernelRef KRef)
265-
cdef const char *DPCTLKernel_GetName(const DPCTLSyclKernelRef KRef)
266265
cdef void DPCTLKernel_Delete(DPCTLSyclKernelRef KRef)
267266
cdef DPCTLSyclKernelRef DPCTLKernel_Copy(const DPCTLSyclKernelRef KRef)
268267
cdef size_t DPCTLKernel_GetWorkGroupSize(const DPCTLSyclKernelRef KRef)

dpctl/program/_program.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ from dpctl._backend cimport ( # noqa: E211, E402;
3535
DPCTLKernel_GetCompileNumSubGroups,
3636
DPCTLKernel_GetCompileSubGroupSize,
3737
DPCTLKernel_GetMaxNumSubGroups,
38-
DPCTLKernel_GetName,
3938
DPCTLKernel_GetNumArgs,
4039
DPCTLKernel_GetPreferredWorkGroupSizeMultiple,
4140
DPCTLKernel_GetPrivateMemSize,

libsyclinterface/include/dpctl_sycl_kernel_interface.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,6 @@ DPCTL_C_EXTERN_C_BEGIN
5151
DPCTL_API
5252
size_t DPCTLKernel_GetNumArgs(__dpctl_keep const DPCTLSyclKernelRef KRef);
5353

54-
/*!
55-
* @brief Returns a C string for the function name.
56-
*
57-
* @param KRef DPCTLSyclKernelRef pointer to a SYCL
58-
* interoperability kernel.
59-
* @return A C string containing the name of the function.
60-
* @ingroup KernelInterface
61-
*/
62-
DPCTL_API
63-
__dpctl_give const char *
64-
DPCTLKernel_GetName(__dpctl_keep const DPCTLSyclKernelRef KRef);
65-
6654
/*!
6755
* @brief Deletes the DPCTLSyclKernelRef after casting it to a
6856
* ``sycl::kernel``.

libsyclinterface/source/dpctl_sycl_kernel_interface.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,6 @@ size_t DPCTLKernel_GetNumArgs(__dpctl_keep const DPCTLSyclKernelRef KRef)
5252
return static_cast<size_t>(num_args);
5353
}
5454

55-
__dpctl_give const char *
56-
DPCTLKernel_GetName(__dpctl_keep const DPCTLSyclKernelRef KRef)
57-
{
58-
if (!KRef) {
59-
error_handler("Cannot get the name from "
60-
"DPCTLSyclKernelRef as input is a nullptr.",
61-
__FILE__, __func__, __LINE__);
62-
return nullptr;
63-
}
64-
65-
auto sycl_kernel = unwrap<kernel>(KRef);
66-
auto name = sycl_kernel->get_info<info::kernel::function_name>();
67-
return dpctl::helper::cstring_from_string(name);
68-
}
69-
7055
void DPCTLKernel_Delete(__dpctl_take DPCTLSyclKernelRef KRef)
7156
{
7257
delete unwrap<kernel>(KRef);

0 commit comments

Comments
 (0)