geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm::NVMLGPUTopo Class Reference

#include <NVMLGPUTopo.hpp>

Inheritance diagram for geopm::NVMLGPUTopo:
Collaboration diagram for geopm::NVMLGPUTopo:

Public Member Functions

 NVMLGPUTopo ()
 NVMLGPUTopo (const NVMLDevicePool &device_pool, const int num_cpu)
virtual ~NVMLGPUTopo ()=default
int num_gpu (void) const override
 Number of GPUs on the platform.
int num_gpu (int domain_type) const override
std::set< int > cpu_affinity_ideal (int gpu_idx) const override
 CPU Affinitization set for a particular GPU.
std::set< int > cpu_affinity_ideal (int domain_type, int gpu_idx) const override
Public Member Functions inherited from geopm::GPUTopo
 GPUTopo ()=default
virtual ~GPUTopo ()=default

Constructor & Destructor Documentation

◆ NVMLGPUTopo() [1/2]

geopm::NVMLGPUTopo::NVMLGPUTopo ( )

◆ NVMLGPUTopo() [2/2]

geopm::NVMLGPUTopo::NVMLGPUTopo ( const NVMLDevicePool & device_pool,
const int num_cpu )
Todo
: As an optimization this may be replaceable with CPU_OR of all masks in ideal_affinitzation_mask_vec

◆ ~NVMLGPUTopo()

virtual geopm::NVMLGPUTopo::~NVMLGPUTopo ( )
virtualdefault

Member Function Documentation

◆ cpu_affinity_ideal() [1/2]

std::set< int > geopm::NVMLGPUTopo::cpu_affinity_ideal ( int domain_type,
int gpu_idx ) const
overridevirtual

Implements geopm::GPUTopo.

◆ cpu_affinity_ideal() [2/2]

std::set< int > geopm::NVMLGPUTopo::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.

◆ num_gpu() [1/2]

int geopm::NVMLGPUTopo::num_gpu ( int domain_type) const
overridevirtual

Implements geopm::GPUTopo.

◆ num_gpu() [2/2]

int geopm::NVMLGPUTopo::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: