heimdallr.utilities.nvidia.smi_parsing.NvidiaSMI¶
- class heimdallr.utilities.nvidia.smi_parsing.NvidiaSMI[source]¶
Bases:
object
description
Methods
DeviceQuery
([filter])Provides a Python interface to GPU management and monitoring functions.
XmlDeviceQuery
([filter])Provides a Python interface to GPU management and monitoring functions.
__init__
()Virtually private constructor.
format
(results)description
Static access method.
loop
([time_in_milliseconds, filter, callback])description
- classmethod DeviceQuery(filter=None)[source]¶
Provides a Python interface to GPU management and monitoring functions.
This is a wrapper around the NVML library. For information about the NVML library, see the NVML developer page http://developer.nvidia.com/nvidia-management-library-nvml
For all elements as a list of dictionaries. Similiar to nvisia-smi -q -x
$ DeviceQuery()
For a list of filtered dictionary elements by string name. Similiar ot nvidia-smi –query-gpu=pci.bus_id,memory.total,memory.free See help_query_gpu.txt or DeviceQuery(”–help_query_gpu”) for available filter elements
$ DeviceQuery(“pci.bus_id,memory.total,memory.free”)
For a list of filtered dictionary elements by enumeration value. See help_query_gpu.txt or DeviceQuery(”–help_query_gpu”) for available filter elements
$ DeviceQuery([NVSMI_PCI_BUS_ID, NVSMI_MEMORY_TOTAL, NVSMI_MEMORY_FREE])
- classmethod XmlDeviceQuery(filter=None)[source]¶
Provides a Python interface to GPU management and monitoring functions.
This is a wrapper around the NVML library. For information about the NVML library, see the NVML developer page http://developer.nvidia.com/nvidia-management-library-nvml
For all elements as in XML format. Similiar to nvisia-smi -q -x
$ XmlDeviceQuery()
For XML of filtered elements by string name. Similiar ot nvidia-smi –query-gpu=pci.bus_id,memory.total,memory.free See help_query_gpu.txt or XmlDeviceQuery(”–help_query_gpu”) for available filter elements
$ XmlDeviceQuery(“pci.bus_id,memory.total,memory.free”)
For XML of filtered elements by enumeration value. See help_query_gpu.txt or XmlDeviceQuery(”–help_query_gpu”) for available filter elements
$ XmlDeviceQuery([NVSMI_PCI_BUS_ID, NVSMI_MEMORY_TOTAL, NVSMI_MEMORY_FREE])