heimdallr.utilities.nvidia.smi_parsing.NvidiaSMI

class heimdallr.utilities.nvidia.smi_parsing.NvidiaSMI[source]

Bases: object

description

__init__()[source]

Virtually private constructor.

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

getInstance()

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])

format(results)[source]

description

static getInstance()[source]

Static access method.

static loop(time_in_milliseconds=1, filter=None, callback=None)[source]

description

class loop_async(time_in_milliseconds=1, filter=None, callback=None)[source]

Bases: object

description

cancel()[source]

description

is_aborted()[source]

description

result()[source]

description