pub unsafe extern "C" fn cuKernelGetFunction(
pFunc: *mut CUfunction,
kernel: CUkernel,
) -> CUresultExpand description
Returns a function handle.
Returns in pFunc the handle of the function for the requested kernel kernel and the current context. If function handle is not found, the call returns cudaError_enum::CUDA_ERROR_NOT_FOUND.
§Parameters
pFunc: Returned function handle.kernel: Kernel to retrieve function for the requested context.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_HANDLECUresult::CUDA_ERROR_NOT_FOUNDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_CONTEXT_IS_DESTROYED
See also: cuLibraryLoadData, cuLibraryLoadFromFile, cuLibraryUnload, cuLibraryGetKernel, cuLibraryGetModule, cuModuleGetFunction.