Added definition GPU_SUPPORT to toggle GPU related code

This commit is contained in:
aristocratos
2023-11-25 20:44:45 +01:00
parent 975525d38f
commit b87772611c
11 changed files with 198 additions and 34 deletions

View File

@@ -24,6 +24,7 @@ tab-size = 4
namespace rng = std::ranges;
using namespace Tools;
#ifdef GPU_SUPPORT
namespace Gpu {
vector<string> gpu_names;
vector<int> gpu_b_height_offsets;
@@ -34,6 +35,7 @@ namespace Gpu {
};
long long gpu_pwr_total_max;
}
#endif
namespace Proc {
void proc_sorter(vector<proc_info>& proc_vec, const string& sorting, bool reverse, bool tree) {