olympus.utils.gpu.amd module¶
-
class
olympus.utils.gpu.amd.AmdGpuMonitor(loop_interval, device_id)[source]¶ Bases:
objectROCm smi utility is too basic for us to use. We will use sysfs/KFD api instead.
One problem with KFD is that the node number is not guaranteed to be the same after reboot which sucks. I only have one GPU so I do not care.
Methods
parse_gpu_usage parse_memory_free parse_memory_props parse_memory_total parse_memory_usage parse_memory_used parse_name parse_temperature read_props read_value run stop