mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1871] [CLOSED] Dashboard: GPU load, VRAM, temperature, power and PCIe for AMD cards … #3726
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3726
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1871
Author: @WeisTekEng
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:amd-win-telemetry📝 Commits (2)
a1fd8c5Dashboard: GPU load, VRAM, temperature, power and PCIe for AMD cards on Windows (#1380)5f86974Merge branch 'main' into amd-win-telemetry📊 Changes
4 files changed (+593 additions, -9 deletions)
View changed files
📝
serve/telemetry.py(+402 -8)📝
serve/test_server.py(+1 -0)➕
serve/test_telemetry_amd_windows.py(+189 -0)📝
serve/web/app.js(+1 -1)📄 Description
Title
Dashboard: GPU load, VRAM, temperature, power and PCIe for AMD cards on Windows
Issue: Resolves #1380
Summary
On Windows with an AMD card the Monitor dashboard showed nothing for GPU load, VRAM, temperature, power or PCIe, because
serve/telemetry.pycould only read the amdgpu sysfs files, which exist only on Linux. This adds a Windows reader that gets the same readings from DXGI, the performance counters, AMD's ADL library and the PCI device properties. Each source is optional: whatever fails to start leaves its readings empty and the others still show.Tested on an RX 9070 XT Nitro+ (gfx1201), Windows, Ryzen 9 5900X.
python -m serve.telemetry 0 amdon that PC:What changed
serve/telemetry.py_AmdWinreader, chosen bygpu_reader()for the AMD backend on Windows. Linux and NVIDIA paths are unchanged.--gpuselects the same card.GPU Engine,GPU Adapter Memory) matched by the card's LUID: load (the busiest engine, as Task Manager shows) and VRAM in use. The query is reopened every 15 reads, and the last good value is kept for up to 3 empty reads.atiadlxx.dll, installed with the Adrenalin driver), PMLog sensors: temperature, power and load. ADL reports AMD's vendor id as the decimal 1002, not 0x1002, so both are accepted.errors), andpython -m serve.telemetry [index] [amd]prints it with eight seconds of readings, so a problem on someone's PC can be diagnosed without starting the server.gpu_notetext no longer says "Windows" or "Linux" and names what was tried.serve/web/app.js: the VRAM tile's fallback text is now "not available" instead of "not available on Windows AMD yet".serve/test_telemetry_amd_windows.py(new, 17 tests): parsing, sensor choice, adapter ordering, ctypes struct sizes, and the fallbacks, with the Windows APIs faked so they run anywhere.serve/test_server.py:AmdTelemetryis pinned to the Linux reader (@mock.patch("serve.telemetry.IS_WIN", False)). Those tests fake a sysfs tree and callgpu_reader(…, amd=True), so on a Windows machine they were getting the new reader and failing.Extra Notes
pcie_path/pcie_own_genkeys from #1733, which are specific to the Linux sysfs walk.gpu_busy(which uses the load reading) can now see a busy GPU, andfree_vram_mibnow returns a value instead of None. As far as I can tell both are only used when configured or by the watchdog, but please double-check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.