cuda.bindings.nvml.device_get_bar1_memory_info#

cuda.bindings.nvml.device_get_bar1_memory_info(intptr_t device)#

Gets Total, Available and Used size of BAR1 memory.

BAR1 is used to map the FB (device memory) so that it can be directly accessed by the CPU or by 3rd party devices (peer-to-peer on the PCIE bus). For Kepler ™️ or newer fully supported devices.

Parameters:

device (intptr_t) – The identifier of the target device.

Returns:

Reference in which BAR1 memory information is

returned.

Return type:

nvmlBAR1Memory_t

Note

In MIG mode, if device handle is provided, the API returns aggregate information, only if the caller has appropriate privileges. Per-instance information can be queried by using specific MIG device handles.

See also

nvmlDeviceGetBAR1MemoryInfo