Skip to main content

cudaLibraryGetKernel

Function cudaLibraryGetKernel 

Source
pub unsafe extern "C" fn cudaLibraryGetKernel(
    pKernel: *mut cudaKernel_t,
    library: cudaLibrary_t,
    name: *const c_char,
) -> cudaError_t
Expand 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

See also: cudaLibraryLoadData, cudaLibraryLoadFromFile, cudaLibraryUnload, cuLibraryGetKernel.