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 *dptr and *bytes the base pointer and size of the global of name name located in module hmod. If no variable of that name exists, cuModuleGetGlobal() returns CUDA_ERROR_NOT_FOUND. One of the parameters dptr or numbytes (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