cuda.bindings._v2.driver.module_get_global_v2#
- cuda.bindings._v2.driver.module_get_global_v2(intptr_t hmod, name) tuple#
Returns a global pointer from a module.
Returns in
*dptrand*bytesthe base pointer and size of the global of namenamelocated in modulehmod. If no variable of that name exists,cuModuleGetGlobal()returnsCUDA_ERROR_NOT_FOUND. One of the parametersdptrornumbytes(not both) can be NULL in which case it is ignored.- Parameters:
hmod (intptr_t) – Module to retrieve global from.
name (bytes) – Name of global to retrieve.
- Returns:
uint64_t: Returned global device pointer.
size_t: Returned global size in bytes.
- Return type:
A 2-tuple containing
See also
cuModuleGetGlobal_v2