= NVML()
nv nv.driver_version, nv.cuda_version
('535.183.06', '12.2')
NVML ()
Convenient access to pynvml
(the library behind nvidia-smi
)
NVML.info (i:int=0)
Basic information about GPU i
_Info(name='NVIDIA RTX A6000', serial='1322123048138', uuid='GPU-61e56e6f-2a64-c0f4-b26c-ab3ead0eed5b', persistence_mode=1, bus_id='00000000:01:00.0', display_active=0, performance_state=8, fan_speed=30, temperature=31, compute_mode=0)
NVML.mem (i:int=0)
Memory total/free/used for GPU i
, in MB
NVML.utilization (i:int=0)
% of time during which GPU i
was actively using various components
NVML.power (i:int=0)
Get power usage and limit for GPU i
in watts
Here “limit” refers to the maximum power draw allowed for the GPU.
NVML.clocks (i:int=0)
Get current clock speeds (in MHz) for GPU i
NVML.pcie_throughput (i:int=0)
Get PCIe throughput (in KB/s) for GPU i
NVML.processes (i:int=0)
Get information about processes running on GPU i
[_ProcessInfo(pid=201084, name='/home/jhoward/miniconda3/bin/python3.12', memory=46476.0)]
NVML.dmon (i:int=0)
Get key monitoring metrics for GPU i
, similar to nvidia-smi dmon