Commit Graph

21 Commits

Author SHA1 Message Date
FlightlessMango
30ee0b770d Don't use all sysfs files if metrics_path 2022-02-11 08:53:06 +01:00
FlightlessMango
6983c2ec39 Use gpu_metrics instead of libdrm when available 2022-02-04 19:55:00 +01:00
FlightlessMango
8e2c7e8524 mangoapp: disable amdgpu_handles 2022-01-29 20:29:10 +01:00
jackun
a431c092eb
Separate libdrm and libdrm_amdgpu loader 2021-08-12 16:21:37 +03:00
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 2021-07-27 16:16:39 +03:00
jackun
d41ad84260
Poll amdgpu regs at 120ticks/s regardless of sampling period 2021-07-16 04:06:36 +03:00
jackun
2f807a4c0d
Add spdlog wrap and logging 2021-07-16 04:06:09 +03:00
jackun
c093f9823e
Use libdrm_amdgpu for amdgpu sensor info, if available
Using plain `open` as `drmOpen` needs bus id check which needs interface 1.4 ioctl which gives EPERM cause only DRM_MASTER can call it :(

https://github.com/clbr/radeontop/issues/48#issuecomment-493792404
2021-07-13 19:54:24 +03:00
Witold Baryluk
e712a26eff
Perform updates of gpuInfo struct in more atomic way
The issue is that value might be set to 0, or original miliC (i.e. 35000),
while the other thread is reading it from the memory.

Instead using single writes to the target location,
only with intended end value.

This is a not a full proper fix (like using mutex between overlay and the thread
doing hw info update), but should alleviate issue of logging sometimes
having value 0, or original value of miliC for temperature.
2020-12-01 05:32:37 +00:00
FlightlessMango
fde20cac81 Collect total vram for Nvidia 2020-11-06 22:04:10 +01:00
jackun
c15133b82f
Add checkNvidia for nvml/xnvctrl/nvapi checks, for header cleanup 2020-09-09 11:24:24 +03:00
FlightlessMango
bf9132bba1 Win32 nvapi gpu usage 2020-09-07 04:38:55 +02:00
jackun
1495b1e88f
ifdef guard nvml header 2020-06-09 14:16:02 +03:00
jackun
953c8d0e0f
Add meson option with_nvml 2020-06-09 13:44:41 +03:00
jackun
ff48525313
Consolidated amdgpu file handles to a struct and add gpu_power param to show power usage for amdgpu/nvml 2020-05-22 15:44:34 +03:00
jackun
768297b430
[editorconfig] Apply whitespace rules 2020-05-10 15:18:59 +03:00
FlightlessMango
bff9958284 Changed pthreads to std::thread 2020-05-01 23:55:21 +02:00
jackun
049e960589
Add 'use_xnvctrl' feature to allow building without libXNVCtrl support 2020-03-30 22:48:56 +03:00
jackun
fbae1dfcc0
More checks for XNVCtrl support. Favor NVML but fallback to XNVCtrl if supported. 2020-03-20 16:36:00 +02:00
FlightlessMango
e7b5a18d87 If NVML fails fallback to NVctrl 2020-03-20 12:54:54 +01:00
FlightlessMango
a2735693ba Merge opengl into develop 2020-03-10 06:19:18 +01:00