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
*dptrand*bytesthe base pointer and size of the global with namenamefor the requested librarylibraryand the current context. If no global for the requested namenameexists, the call returnsCUDA_ERROR_NOT_FOUND. One of the parametersdptrornumbytes(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