cuda.bindings._v2.driver.library_get_unified_function#

cuda.bindings._v2.driver.library_get_unified_function(intptr_t library, symbol) → intptr_t#

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 CUDA_ERROR_NOT_FOUND. If there is no device with attribute CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS present in the system, the call may return CUDA_ERROR_NOT_FOUND.

Parameters:
  • library (intptr_t) – Library to retrieve function pointer memory from.

  • symbol (bytes) – Name of function pointer to retrieve.

Returns:

Returned pointer to a unified function.

Return type:

intptr_t

See also

cuLibraryGetUnifiedFunction