cuda.bindings._v2.driver.mem_get_address_range_v2#

cuda.bindings._v2.driver.mem_get_address_range_v2(uint64_t dptr) → tuple#

Get information on memory allocations.

Returns the base address in *pbase and size in *psize of the allocation that contains the input pointer dptr. Both parameters pbase and psize are optional. If one of them is NULL, it is ignored.

Parameters:

dptr (uint64_t) – Device pointer to query.

Returns:

  • uint64_t: Returned base address.

  • size_t: Returned size of device memory allocation.

Return type:

A 2-tuple containing

See also

cuMemGetAddressRange_v2