pub unsafe extern "C" fn cudaLibraryGetKernel(
pKernel: *mut cudaKernel_t,
library: cudaLibrary_t,
name: *const c_char,
) -> cudaError_tExpand 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_t::CUDA_ERROR_NOT_FOUND.
§Parameters
pKernel: Returned kernel handle.library: Library to retrieve kernel from.name: Name of kernel to retrieve.
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_DEINITIALIZEDcudaError_t::CUDA_ERROR_NOT_INITIALIZEDcudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_INVALID_HANDLEcudaError_t::CUDA_ERROR_NOT_FOUND
See also: cudaLibraryLoadData, cudaLibraryLoadFromFile, cudaLibraryUnload, cuLibraryGetKernel.