perun.backend.nvml

Nvidia Mangement Library Source definition.

Attributes

log

Classes

NVMLBackend

NVMLSource class.

Module Contents

perun.backend.nvml.log[source]
class perun.backend.nvml.NVMLBackend[source]

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() None[source]

Init pynvml and gather number of devices.

close() None[source]

Backend shutdown code.

availableSensors() Dict[str, Tuple][source]

Return string ids of visible devices.

Returns:

Set with sensor ids.

Return type:

Set[str]

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

Gather sensor object based on a set of device ids.

Parameters:

deviceList (Set[str]) – Set containing divice ids.

Returns:

List with Sensor objects.

Return type:

List[Sensor]