pub unsafe extern "C" fn cudaLibraryEnumerateKernels(
kernels: *mut cudaKernel_t,
numKernels: c_uint,
lib: cudaLibrary_t,
) -> cudaError_tExpand 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
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_DEINITIALIZEDcudaError_t::CUDA_ERROR_NOT_INITIALIZEDcudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_INVALID_HANDLE
See also: cudaLibraryGetKernelCount, cuLibraryEnumerateKernels.