Skip to main content

cudaLibraryGetUnifiedFunction

Function cudaLibraryGetUnifiedFunction 

Source
pub unsafe extern "C" fn cudaLibraryGetUnifiedFunction(
    fptr: *mut *mut c_void,
    library: cudaLibrary_t,
    symbol: *const c_char,
) -> cudaError_t
Expand description

Returns a pointer to a unified function.

Returns in *fptr the function pointer to a unified function denoted by symbol. If no unified function with name symbol exists, the call returns cudaError_t::CUDA_ERROR_NOT_FOUND. If there is no device with attribute cudaDeviceProp::unifiedFunctionPointers present in the system, the call may return cudaError_t::CUDA_ERROR_NOT_FOUND.

§Parameters

  • fptr: Returned pointer to a unified function.
  • library: Library to retrieve function pointer memory from.
  • symbol: Name of function pointer to retrieve.

§Return value

See also: cudaLibraryLoadData, cudaLibraryLoadFromFile, cudaLibraryUnload, cuLibraryGetUnifiedFunction.