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