cuda.bindings._v2.driver.library_get_global#

cuda.bindings._v2.driver.library_get_global(intptr_t library, name) → tuple#

Returns a global device pointer.

Returns in *dptr and *bytes the base pointer and size of the global with name name for the requested library library and the current context. If no global for the requested name name exists, the call returns CUDA_ERROR_NOT_FOUND. One of the parameters dptr or numbytes (not both) can be NULL in which case it is ignored.

Parameters:
  • library (intptr_t) – Library to retrieve global from.

  • name (bytes) – Name of global to retrieve.

Returns:

  • uint64_t: Returned global device pointer for the requested

    context.

  • size_t: Returned global size in bytes.

Return type:

A 2-tuple containing

See also

cuLibraryGetGlobal