Skip to main content

cuLibraryGetUnifiedFunction

Function cuLibraryGetUnifiedFunction 

Source
pub unsafe extern "C" fn cuLibraryGetUnifiedFunction(
    fptr: *mut *mut c_void,
    library: CUlibrary,
    symbol: *const c_char,
) -> CUresult
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_enum::CUDA_ERROR_NOT_FOUND. If there is no device with attribute CUdevice_attribute_enum::CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS present in the system, the call may return cudaError_enum::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.