perun.backend.nvml

Nvidia Mangement Library Source definition.

Module Contents

Classes

NVMLBackend

NVMLSource class.

Attributes

log

perun.backend.nvml.log
class perun.backend.nvml.NVMLBackend

Bases: perun.backend.backend.Backend

NVMLSource class.

Setups connection to NVML and creates relevant devices

id = 'nvlm'
name = 'NVIDIA ML'
description: str = 'Access GPU information from NVML python bindings'
setup()

Init pynvml and gather number of devices.

close()

Backend shutdown code.

visibleSensors() Set[str]

Return string ids of visible devices.

Returns

Set[str]

Set with sensor ids.

getSensors(deviceList: Set[str]) List[perun.data_model.sensor.Sensor]

Gather sensor object based on a set of device ids.

Parameters

deviceListSet[str]

Set containing divice ids.

Returns

List[Sensor]

List with Sensor objects.