Skip to content

Commit d224507

Browse files
Rework GPUs to allow for multiple
Using sysfs we iterate through available GPUs and determin which one is the active GPU through fdinfo of the app. gpu_stats is rewritten to display all available GPUs and their stats or the current active gpu using the `active_gpu` parameter. vram is likewise rewritten to display vram for all GPUs or active gpu. throttling only displays data for the active GPU as we don't expect an idling GPU to give relevant throttling information.
1 parent feef6e3 commit d224507

33 files changed

+1344
-1336
lines changed

meson.build

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project('MangoHud',
33
version : 'v0.7.2',
44
license : 'MIT',
55
meson_version: '>=0.60.0',
6-
default_options : ['buildtype=release', 'c_std=c99', 'cpp_std=c++14', 'warning_level=2']
6+
default_options : ['buildtype=release', 'c_std=c99', 'cpp_std=c++17', 'warning_level=2']
77
)
88

99
cc = meson.get_compiler('c')
@@ -277,14 +277,11 @@ if get_option('tests').enabled()
277277
e = executable('amdgpu', 'tests/test_amdgpu.cpp',
278278
files(
279279
'src/amdgpu.cpp',
280-
'src/cpu.cpp',
281-
'src/gpu.cpp',
282280
'src/mesa/util/os_time.c',
283281
'src/file_utils.cpp',
284282
),
285283
cpp_args: ['-DTEST_ONLY'],
286284
dependencies: [
287-
dep_vulkan,
288285
cmocka_dep,
289286
spdlog_dep,
290287
implot_dep,

0 commit comments

Comments
 (0)