Kernel class C wrapper¶
Overview¶
// global functions DPCTL_API void DPCTLKernel_Delete(__dpctl_take DPCTLSyclKernelRef KRef); DPCTL_API const __dpctl_give char* DPCTLKernel_GetFunctionName(__dpctl_keep const DPCTLSyclKernelRef KRef); DPCTL_API size_t DPCTLKernel_GetNumArgs(__dpctl_keep const DPCTLSyclKernelRef KRef);
Detailed Documentation¶
Global Functions¶
DPCTL_API void DPCTLKernel_Delete(__dpctl_take DPCTLSyclKernelRef KRef)
Deletes the DPCTLSyclKernelRef after casting it to a sycl::kernel.
Parameters:
KRef |
DPCTLSyclKernelRef pointer to an OpenCL interoperability kernel. |
DPCTL_API const __dpctl_give char* DPCTLKernel_GetFunctionName(__dpctl_keep const DPCTLSyclKernelRef KRef)
Returns a C string for the kernel name.
Parameters:
KRef |
DPCTLSyclKernelRef pointer to an OpenCL interoperability kernel. |
Returns:
If a kernel name exists then returns it as a C string, else returns a nullptr.
DPCTL_API size_t DPCTLKernel_GetNumArgs(__dpctl_keep const DPCTLSyclKernelRef KRef)
Returns the number of arguments for the OpenCL kernel.
Parameters:
KRef |
DPCTLSyclKernelRef pointer to an OpenCL interoperability kernel. |
Returns:
Returns the number of arguments for the OpenCL interoperability kernel.