Function cuKernelGetFunction

Source
pub unsafe extern "C" fn cuKernelGetFunction(
    pFunc: *mut CUfunction,
    kernel: CUkernel,
) -> CUresult
Expand description

\brief Returns a function handle

Returns in \p pFunc the handle of the function for the requested kernel \p kernel and the current context. If function handle is not found, the call returns ::CUDA_ERROR_NOT_FOUND.

\param pFunc - Returned function handle \param kernel - Kernel to retrieve function for the requested context

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_NOT_FOUND, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_CONTEXT_IS_DESTROYED

\sa ::cuLibraryLoadData, ::cuLibraryLoadFromFile, ::cuLibraryUnload, ::cuLibraryGetKernel, ::cuLibraryGetModule, ::cuModuleGetFunction