Commit Graph

15 Commits (2f807a4c0da400606008195d15c6d7d9d733e3d2)

Author SHA1 Message Date
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
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
3 years ago
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.
4 years ago
FlightlessMango fde20cac81 Collect total vram for Nvidia 4 years ago
jackun c15133b82f
Add `checkNvidia` for nvml/xnvctrl/nvapi checks, for header cleanup 4 years ago
FlightlessMango bf9132bba1 Win32 nvapi gpu usage 4 years ago
jackun 1495b1e88f
ifdef guard nvml header 4 years ago
jackun 953c8d0e0f
Add meson option `with_nvml` 4 years ago
jackun ff48525313
Consolidated amdgpu file handles to a struct and add `gpu_power` param to show power usage for amdgpu/nvml 4 years ago
jackun 768297b430
[editorconfig] Apply whitespace rules 4 years ago
FlightlessMango bff9958284 Changed pthreads to std::thread 4 years ago
jackun 049e960589
Add 'use_xnvctrl' feature to allow building without libXNVCtrl support 4 years ago
jackun fbae1dfcc0
More checks for XNVCtrl support. Favor NVML but fallback to XNVCtrl if supported. 4 years ago
FlightlessMango e7b5a18d87 If NVML fails fallback to NVctrl 4 years ago
FlightlessMango a2735693ba Merge opengl into develop 4 years ago