Skip to main content

cudaLibraryEnumerateKernels

Function cudaLibraryEnumerateKernels 

Source
pub unsafe extern "C" fn cudaLibraryEnumerateKernels(
    kernels: *mut cudaKernel_t,
    numKernels: c_uint,
    lib: cudaLibrary_t,
) -> cudaError_t
Expand description

Retrieve the kernel handles within a library.

Returns in kernels a maximum number of numKernels kernel handles within lib. The returned kernel handle becomes invalid when the library is unloaded.

§Parameters

  • kernels: Buffer where the kernel handles are returned to.
  • numKernels: Maximum number of kernel handles may be returned to the buffer.
  • lib: Library to query from.

§Return value

See also: cudaLibraryGetKernelCount, cuLibraryEnumerateKernels.