geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
#include <DCGMDevicePool.hpp>
Public Types | |
enum | m_field_id_e { M_FIELD_ID_SM_ACTIVE , M_FIELD_ID_SM_OCCUPANCY , M_FIELD_ID_DRAM_ACTIVE , M_NUM_FIELD_ID } |
Public Member Functions | |
DCGMDevicePool ()=default | |
virtual | ~DCGMDevicePool ()=default |
virtual int | num_device () const =0 |
Number of GPUs that support DCGM on the platform. More... | |
virtual double | sample (int gpu_idx, int field_id) const =0 |
Get the value for the provided geopm_field_id. More... | |
virtual void | update (int gpu_idx)=0 |
Query DCGM for the latest value for an GPU. Note that this is the last value DCGM cached. This updates the DCGM device pool stored value that is provided via the sample_field_value function. More... | |
virtual void | update_rate (int field_update_rate)=0 |
Set field update rate for DCGM devices. This is the rate. More... | |
virtual void | max_storage_time (int max_storage_time)=0 |
Set maximum storage time for for DCGM devices. This is the maximum time a DCGM sample will be kept. More... | |
virtual void | max_samples (int max_samples)=0 |
Set maximum samples to store for for DCGM devices. This is the maximum number of DCGM samples that will be kept. 0 indicates no limit. More... | |
virtual void | polling_enable (void)=0 |
Enable DCGM data polling through setting the watch fields. More... | |
virtual void | polling_disable (void)=0 |
Disable DCGM data polling through calling unwatchfields. More... | |
An interface for the NVIDIA Data Center GPU Manager (DCGM). This class is a wrapper around all calls to the DCGM library and is intended to be called via the DCGMIOGroup. Its primary function is provided an abstracted interface to DCGM metrics of interest.
|
default |
|
virtualdefault |
|
pure virtual |
Set maximum samples to store for for DCGM devices. This is the maximum number of DCGM samples that will be kept. 0 indicates no limit.
[in] | max_samples | maximum number of samples to store |
Implemented in geopm::DCGMDevicePoolImp.
|
pure virtual |
Set maximum storage time for for DCGM devices. This is the maximum time a DCGM sample will be kept.
[in] | max_storage_time | maximum storage time in seconds |
Implemented in geopm::DCGMDevicePoolImp.
|
pure virtual |
Number of GPUs that support DCGM on the platform.
Implemented in geopm::DCGMDevicePoolImp.
|
pure virtual |
Disable DCGM data polling through calling unwatchfields.
Implemented in geopm::DCGMDevicePoolImp.
|
pure virtual |
Enable DCGM data polling through setting the watch fields.
Implemented in geopm::DCGMDevicePoolImp.
|
pure virtual |
Get the value for the provided geopm_field_id.
This value should not change unless update_field_value has been called
[in] | gpu_idx | The index indicating a particular GPU. |
[in] | field_id | One of the m_field_id_e values |
Implemented in geopm::DCGMDevicePoolImp.
|
pure virtual |
Query DCGM for the latest value for an GPU. Note that this is the last value DCGM cached. This updates the DCGM device pool stored value that is provided via the sample_field_value function.
[in] | gpu_idx | The index indicating a particular GPU. |
Implemented in geopm::DCGMDevicePoolImp.
|
pure virtual |
Set field update rate for DCGM devices. This is the rate.
[in] | field_update_rate | DCGM update rate in microseconds. |
Implemented in geopm::DCGMDevicePoolImp.