Function cuLibraryEnumerateKernels

Source
pub unsafe extern "C" fn cuLibraryEnumerateKernels(
    kernels: *mut CUkernel,
    numKernels: c_uint,
    lib: CUlibrary,
) -> CUresult
Expand description

\brief Retrieve the kernel handles within a library.

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

\param kernels - Buffer where the kernel handles are returned to \param numKernels - Maximum number of kernel handles may be returned to the buffer \param lib - Library to query from

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_INVALID_VALUE

\sa ::cuLibraryGetKernelCount