geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
GPUTopoNull.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef GPUTOPONULL_HPP_INCLUDE
7 #define GPUTOPONULL_HPP_INCLUDE
8 
9 #include <cstdint>
10 #include <vector>
11 #include <set>
12 
13 #include "GPUTopo.hpp"
14 
15 namespace geopm
16 {
17  class GPUTopoNull : public GPUTopo
18  {
19  public:
20  GPUTopoNull() = default ;
21  virtual ~GPUTopoNull() = default;
22  int num_gpu(void) const override;
23  int num_gpu(int domain_type) const override;
24  std::set<int> cpu_affinity_ideal(int gpu_idx) const override;
25  std::set<int> cpu_affinity_ideal(int domain_type, int gpu_idx) const override;
26  };
27 }
28 #endif
Definition: GPUTopo.hpp:16
Definition: GPUTopoNull.hpp:18
int num_gpu(void) const override
Number of GPUs on the platform.
Definition: GPUTopoNull.cpp:16
virtual ~GPUTopoNull()=default
std::set< int > cpu_affinity_ideal(int gpu_idx) const override
CPU Affinitization set for a particular GPU.
Definition: GPUTopoNull.cpp:26
GPUTopoNull()=default
Definition: Agg.cpp:20