pub unsafe extern "C" fn cuLibraryGetKernel(
pKernel: *mut CUkernel,
library: CUlibrary,
name: *const c_char,
) -> CUresultExpand description
Returns a kernel handle.
Returns in pKernel the handle of the kernel with name name located in library library. If kernel handle is not found, the call returns cudaError_enum::CUDA_ERROR_NOT_FOUND.
§Parameters
pKernel: Returned kernel handle.library: Library to retrieve kernel from.name: Name of kernel to retrieve.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_HANDLECUresult::CUDA_ERROR_NOT_FOUND
See also: cuLibraryLoadData, cuLibraryLoadFromFile, cuLibraryUnload, cuKernelGetFunction, cuLibraryGetModule, cuModuleGetFunction.