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

#include <DrmGpuTopo.hpp>

Inheritance diagram for geopm::DrmGpuTopo:
Inheritance graph
[legend]
Collaboration diagram for geopm::DrmGpuTopo:
Collaboration graph
[legend]

Public Member Functions

 DrmGpuTopo ()=delete
 
 DrmGpuTopo (const std::string &drm_directory)
 
virtual ~DrmGpuTopo ()=default
 
int num_gpu (void) const override
 Number of GPUs on the platform. More...
 
int num_gpu (int domain) const override
 
std::set< int > cpu_affinity_ideal (int gpu_idx) const override
 CPU Affinitization set for a particular GPU. More...
 
std::set< int > cpu_affinity_ideal (int domain, int gpu_idx) const override
 
std::string gt_path (int gpu_chip_idx) const
 
std::string card_path (int gpu_idx) const
 
std::string driver_name () const
 
- Public Member Functions inherited from geopm::GPUTopo
 GPUTopo ()=default
 
virtual ~GPUTopo ()=default
 

Constructor & Destructor Documentation

◆ DrmGpuTopo() [1/2]

geopm::DrmGpuTopo::DrmGpuTopo ( )
delete

◆ DrmGpuTopo() [2/2]

geopm::DrmGpuTopo::DrmGpuTopo ( const std::string &  drm_directory)

◆ ~DrmGpuTopo()

virtual geopm::DrmGpuTopo::~DrmGpuTopo ( )
virtualdefault

Member Function Documentation

◆ card_path()

std::string geopm::DrmGpuTopo::card_path ( int  gpu_idx) const

◆ cpu_affinity_ideal() [1/2]

std::set< int > geopm::DrmGpuTopo::cpu_affinity_ideal ( int  domain,
int  gpu_idx 
) const
overridevirtual

Implements geopm::GPUTopo.

◆ cpu_affinity_ideal() [2/2]

std::set< int > geopm::DrmGpuTopo::cpu_affinity_ideal ( int  domain_idx) const
overridevirtual

CPU Affinitization set for a particular GPU.

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

Implements geopm::GPUTopo.

◆ driver_name()

std::string geopm::DrmGpuTopo::driver_name ( ) const

◆ gt_path()

std::string geopm::DrmGpuTopo::gt_path ( int  gpu_chip_idx) const

◆ num_gpu() [1/2]

int geopm::DrmGpuTopo::num_gpu ( int  domain) const
overridevirtual

Implements geopm::GPUTopo.

◆ num_gpu() [2/2]

int geopm::DrmGpuTopo::num_gpu ( void  ) const
overridevirtual

Number of GPUs on the platform.

Parameters
[in]domainThe GEOPM domain type

Implements geopm::GPUTopo.


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