Skip to main content

cuKernelGetFunction

Function cuKernelGetFunction 

Source
pub unsafe extern "C" fn cuKernelGetFunction(
    pFunc: *mut CUfunction,
    kernel: CUkernel,
) -> CUresult
Expand 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

See also: cuLibraryLoadData, cuLibraryLoadFromFile, cuLibraryUnload, cuLibraryGetKernel, cuLibraryGetModule, cuModuleGetFunction.