cuda.bindings._v2.driver.library_get_managed#

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

Returns a pointer to managed memory.

Returns in *dptr and *bytes the base pointer and size of the managed memory with name name for the requested library library. If no managed memory with 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. Note that managed memory for library library is shared across devices and is registered when the library is loaded into atleast one context.

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

  • name (bytes) – Name of managed memory to retrieve.

Returns:

  • uint64_t: Returned pointer to the managed memory.

  • size_t: Returned memory size in bytes.

Return type:

A 2-tuple containing

See also

cuLibraryGetManaged