geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::GPUTopo Class Referenceabstract

#include <GPUTopo.hpp>

Inheritance diagram for geopm::GPUTopo:
Inheritance graph
[legend]

Public Member Functions

 GPUTopo ()=default
 
virtual ~GPUTopo ()=default
 
virtual int num_gpu (void) const =0
 Number of GPUs on the platform. More...
 
virtual int num_gpu (int domain) const =0
 
virtual std::set< int > cpu_affinity_ideal (int domain_idx) const =0
 CPU Affinitization set for a particular GPU. More...
 
virtual std::set< int > cpu_affinity_ideal (int domain, int domain_idx) const =0
 

Constructor & Destructor Documentation

◆ GPUTopo()

geopm::GPUTopo::GPUTopo ( )
default

◆ ~GPUTopo()

virtual geopm::GPUTopo::~GPUTopo ( )
virtualdefault

Member Function Documentation

◆ cpu_affinity_ideal() [1/2]

virtual std::set<int> geopm::GPUTopo::cpu_affinity_ideal ( int  domain,
int  domain_idx 
) const
pure virtual

◆ cpu_affinity_ideal() [2/2]

virtual std::set<int> geopm::GPUTopo::cpu_affinity_ideal ( int  domain_idx) const
pure virtual

CPU Affinitization set for a particular GPU.

Parameters
[in]domainThe GEOPM domain type
[in]domain_idxThe index indicating a particular GPU

Implemented in geopm::NVMLGPUTopo, geopm::LevelZeroGPUTopo, geopm::GPUTopoNull, and geopm::DrmGpuTopo.

◆ num_gpu() [1/2]

virtual int geopm::GPUTopo::num_gpu ( int  domain) const
pure virtual

◆ num_gpu() [2/2]

virtual int geopm::GPUTopo::num_gpu ( void  ) const
pure virtual

Number of GPUs on the platform.

Parameters
[in]domainThe GEOPM domain type

Implemented in geopm::NVMLGPUTopo, geopm::LevelZeroGPUTopo, geopm::GPUTopoNull, and geopm::DrmGpuTopo.


The documentation for this class was generated from the following file: