cuda.bindings._v2.driver.device_get_graph_mem_attribute#

cuda.bindings._v2.driver.device_get_graph_mem_attribute(
int device,
int attr,
) → unsigned long long#

Return a graph memory attribute of a device, in bytes.

Parameters:
  • device (int) – Device ordinal.

  • attr (int) – A GraphMemAttribute value (USED_MEM_CURRENT, USED_MEM_HIGH, RESERVED_MEM_CURRENT or RESERVED_MEM_HIGH).

Returns:

The attribute value, in bytes.

Return type:

int

See also

cuDeviceGetGraphMemAttribute