mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3157] Monitor: every GPU tile silently shows "-" when a Linux HIP config lacks "backend": "hip" #1269
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#1269
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?
Originally created by @destroyor on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3157
Monitor: every GPU tile silently shows "–" when a Linux HIP config lacks
"backend": "hip"Box: RX 7900 XTX (gfx1100), Arch Linux, engine 0.1.45 / server 0.1.45, HIP backend (ROCm 10.2 nightly). Full benchmark of this machine in #2938.
Symptom
The web app's Monitor tab shows five empty tiles - GPU load, VRAM, GPU temp, Power, PCIe - while
8,883 experts cachedunderneath VRAM is fine (that subtitle comes from the engine's own report,not from telemetry). About says
GPU: not readable (NVML)on a box with no NVIDIA card, andhardware_static.gpu_noteisNone: the dashboard gives no hint why, and the server log stayssilent. It looks like "this platform cannot read AMD GPUs", which is wrong - Linux can since #301.
Root cause
The sysfs reader is gated on one config key, read once at server start:
serve/server.py:svc.backend = cfg.get("backend"), thenTelemetry(..., amd=getattr(self, "backend", None) == "hip")serve/telemetry.pygpu_reader():amd=Falseon Linux means_Nvml-libnvidia-ml.so.1fails to load,ok()is False, andsample()skips the wholegpu_*block.Two details make the failure fully silent:
gpu_noteis only produced whenamd and not self.gpu.ok()- with the keymissing
amdis False, so even the note path is skipped, andengine/BUILD.jsonnext to the exe already says{"backend": "hip"}(setup writes it, the HIPpackaging writes it), but nothing in
serve/ever reads it, and there is no fallback probe.A config written before #301 (or by hand / from an old guide) simply never gets the key; the box
then loses the whole Monitor tab without a word. Ours predates #301 and had been blank the entire time.
Evidence
With no config change, the repo's own reader on the same box reads everything:
Adding
"backend": "hip"to the config and restarting brought all five tiles back, live andcorrect (util 0 -> 95 % under a request, temp 37 -> 43 C, power 7 -> 247 W, VRAM 23.5 GB, Gen4 x16).
Suggested fixes (any one would have saved an hour of source-diving)
cfghas no"backend"and the exe has asibling
BUILD.json, use itsbackendvalue - the information is already stamped at install time.gpu_reader(): on Linux, when NVML fails to load and/sys/class/kfd/kfd/topology/nodeslists an AMD GPU, use_Amd(it needs no ROCm libraries).backendis set and the KFD shows anAMD card, set
gpu_noteto say the config is missing"backend": "hip"instead of staying None.(The PCIe tile showing Gen/width but no MB/s on AMD is separate and already covered by closed #1734.)
Workaround
Add
"backend": "hip"to the serve config JSON and restart the server. It also re-enables theadjacent
backend == "hip"features that were silently off: the free-VRAM admission check("then nothing is refused"), the desktop-VRAM note (#560/#516) and the GPU-busy exemption of the
frozen-engine watchdog (#1317).
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.