mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3727] [GUI] Windows + AMD (RX 9070 XT): GPU load/VRAM/temp/power/PCIe "Not available", onboarding shows 0.0 GB VRAM #1559
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#1559
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 @LausitzAir on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3727
Summary
On Windows with an AMD card, Strata runs fine on the GPU (HIP engine, ~44 tok/s decode,
~600 tok/s prefill with Qwen3.8-Flash-Next IQ3_S), but the desktop app cannot show any GPU
telemetry, and the onboarding wizard reports 0.0 GB of VRAM.
Environment
hip, archs gfx1200/gfx1201What works
engine\strata-device.exe --list-devices:device 0: AMD Radeon RX 9070 XT
arch gfx1201, 15.9 GiB, wave32
setup.amd_gpus_windows()returns the card correctly:[{'name': 'AMD Radeon RX 9070 XT', 'vram_gb': 15.92, 'arch': 'gfx1201', ...}]
Problem 1: Dashboard telemetry "Not available"
GPU load, VRAM, GPU temperature, power and PCIe all show "Not available"
("Automatic GPU placement"). Only CPU, disk and tok/s are measured.
Cause (from reading the code):
serve/telemetry.py→gpu_reader(index, amd=True)returns_Amd, which only reads the Linux amdgpu sysfs files. On Windowsamd_device_dir()returnsNone, so
_Amd.ok()is False and every GPU field stays empty. There is no Windows AMD reader.Problem 2: Onboarding shows 0.0 GB VRAM
In the setup wizard ("Your model" → "Your computer"), the RX 9070 XT is listed with 0.0 GB
VRAM (total = RAM only), although
amd_gpus_windows()andstrata-deviceboth see 15.9 GB.The two virtual display adapters on this PC (Meta Virtual Monitor, Virtual Desktop Monitor)
are also listed as GPUs with 0.0 GB.
Suggested fix
A Windows AMD reader with the same interface as
_Nvml/_Amd, no extra install needed:\GPU Engine(*)\Utilization Percentage(3D/Compute engines, matched to the adapter LUID) - the source Task Manager uses
\GPU Adapter Memory(*)\Dedicated Usagewindows_display_adapters("amd")(qwMemorySize)Happy to test a build or a patch on this machine.
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Not reopened yet. Still missing:
Edit the issue and comment
/reopenagain. Details: CONTRIBUTING.md@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks, this follows the format now.
@noctrex commented on GitHub (Oct 27, 2026):
Same root cause on a 7900 XTX - and since this issue needs a Windows AMD reader anyway, I measured every candidate source on this card to inform the design. Independent of Strata's code: a standalone ctypes probe, read-only: https://gist.github.com/noctrex/6806eed4ac51e81400459dea1c32cc36
Environment: AMD Radeon RX 7900 XTX (gfx1100), driver 32.0.32015.7029, Windows 11 26H2 (build 26300.9711), Python 3.13.16. Load: sustained compute at ~90% utilization (PDH engine-summed) with 23,689 MB VRAM resident. Not tested: multi-GPU, other drivers or Windows builds, and no wall-meter cross-check of the power numbers.
Findings:
For the fix this suggests a small hybrid: DXGI for name and VRAM total (slot 10 GetDesc2; slot 9 fails on this driver), PDH for utilization and VRAM in use, D3DKMT for temperature and fan, ADLX only for power. PR #2273 is the right base; the deltas above are the measured refinements.
Disclosure: this report and the probe scripts were prepared with the help of an LLM working in my coding session; every measurement was run on my machine and I reviewed the text and data before posting.
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you, and thanks to noctrex for the measurements. Since 0.2.5 the app shows the real memory size, load and memory in use for Windows AMD and Intel cards (read from the DirectX adapter list and the Windows GPU counters), and the onboarding no longer shows 0.0 GB. Temperature, power, fan and PCIe are still "Not available". noctrex's table of which source answers on a 7900 XTX is useful for that part.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.5
@Niko1221 commented on GitHub (Oct 29, 2026):
Thanks again, and thanks to noctrex for the measurements. 0.2.8 is out with a fix for this.
We found two reasons the Monitor stayed empty on a Windows AMD card. First, while a model was running the app replaced its own readings with the engine's, and the engine has no reader for an AMD card on Windows, so load and memory went blank exactly when you looked at them. The app now keeps its own reading for anything the engine does not send. Second, the temperature was never read on Windows. It now comes from the display driver and needs no extra install.
We tested AMD cards on Linux, an NVIDIA card on Windows, and an AMD integrated graphics chip on Windows. We have not tested it on a Windows AMD graphics card such as the RX 9070 XT, so it is not confirmed for your setup yet.
Power, fan and the PCIe link still show "Not available" on Windows AMD. They need AMD's own library and are planned for a later version. On Linux, a card that is asleep when idle also shows "Not available" until a model wakes it.
Could you update the app to 0.2.8 and tell us, with a model running, whether load, memory in use and temperature show in the Monitor, and whether the temperature is close to what Adrenalin shows? That is the check we are missing.
@klembitskiyr-svg commented on GitHub (Oct 30, 2026):
Confirmed working on Windows + AMD iGPU (Strix Halo), 0.2.8.
(Ryzen AI Max+ 395, 128 GB shared memory), Qwen3.8-Flash-Next IQ3_S.
(42 °C at idle-ish load) — it was "Not available" on 0.2.6/0.2.7.
Load and memory were already reported since 0.2.6; temperature is the new part.
part of the fix does not cover APUs. Just noting, not a complaint.
Screenshot attached.
@bob-u commented on GitHub (Oct 30, 2026):
Does not work on RX9070
Patch from https://github.com/Niko1221/Strata/pull/3682 worked for me (all except live PCIe bandwidth stats were showing) with 0.1.48 and 50 engines.
@flynetstudios commented on GitHub (Oct 31, 2026):
Not working with 7800xt, im using version 0.2.8
@sergv-ops commented on GitHub (Nov 1, 2026):
Windows + AMD (RX 7900 GRE, gfx1100): what the sources answer under a known load — and the patch that closes the Power tile
Same family as noctrex's 7900 XTX report and on the same driver version (32.0.32015.7029), so the two reports can be read side by side. This one adds a load I generated myself, so the load side of the table is measured rather than inferred — and then the experiment that answers the question I asked here on 30.10: where a Windows AMD reader has to be added for the Monitor to actually consume it.
Environment (checked, not inferred)
strata-desktop.exe, 10 159 616 B), Control 0.1.55, engine 0.1.55windows-x86_64-hip-rdna3.0x1002, device0x744C, 16 324 MiB dedicated, driver 32.0.32015.7029. OpenCL reports the device asgfx1100.Method
amd_sensor_probe.pyverbatim (D3DKMT/ADLX/PDHside by side, read-only).OpenCL.dllships with Adrenalin): a dependent-FMA kernel, 357 launches × 262 144 work-items × 200 000 iterations in a 12-second window,clFinishtimed so a load that does not saturate is visible as such instead of being mistaken for a reading. No install, no admin, nothing written to disk.Measured
GPUTotalBoardPowerGPUPowerPERFDATA.PowerMaxFanRPM3600)\GPU Engine(*)Dedicated UsagePCIEBandwidth0,MemoryBandwidth0)A second run of the same reader during real inference (not a synthetic kernel): 98–100 % load, 184–207 W, 49–50 °C, fan 1352–1382 rpm, and 0 rpm at idle — the card stops the fan below ~40 °C, so a fan reading has to be able to show zero.
Findings
GPUTotalBoardPowermoved 35–72 W → 258–260 W under a load I control;GPUPowernever answered. D3DKMT answeredPower = 0in every single sample including under load, so on this driver the fallback chain in #2273 is not an optional nicety — it is the only path.\GPU Engine(*)\Utilization Percentagehas no instances while no process uses the GPU. A reader that treats "no instances" as a broken source, or the failed instance query as "this counter set does not exist", will look wrong on an idle desktop. While my kernel ran, 248 instances matched this card's LUID.…luid_0x00000000_0x0000EFF1_phys_0…. A needle built with a lower-case%08xformat matches nothing, silently. My first run returned "no data" for exactly this reason, not because the counter set was missing.TemperatureMax11 °C,TemperatureWarning0,MaxMemoryBandwidth0, whileMaxPCIEBandwidthreads 28.37 GB/s.DEVPKEY_PciDevice_CurrentLinkSpeed/_MaxLinkSpeed/_CurrentLinkWidth/_MaxLinkWidthon the devnode) — Gen4 x16 here. Caveat for #3682's rule: on this PC current equals max, so the "device property reports the wiring rather than the negotiated width" case cannot be reproduced on this board; the conservative min(device property, PMLog) rule is still right, just unverifiable here.atiadlxx) is dead on this machine, which matches #2273's note that ADL answers −1/−5 for every sensor:ADL2_Main_Control_Createfaults with0xC0000005in two different hosts (a 64-bit wrapper and a plain PowerShell window), andADL2_Overdrive5_Temperature_Getreturns −5 when the create is skipped. ADLX initializes fine on the same machine throughADLXInitializeWithIncompatibleDriver2and finds the card by name. So the ADL half of a Windows AMD reader is not portable; the ADLX half works.Cross-check against the driver's own overlay (same minute, same machine)
GPUTotalBoardPower258–260 W under my own kernel, 184–207 W during real inferenceThe Monitor's temperature is right — it equals the driver's own reading to the degree — and the number the Power tile was missing is the metric Adrenalin labels "total board power", the one ADLX answers as
GPUTotalBoardPower.The question I asked, answered by experiment
I asked which component produces the Monitor's readings, because the Control this machine runs has no Windows AMD reader at all:
gpu_reader(amd=True)returns_Amd, which is amdgpu sysfs only, and running that sampler directly gave nothing.So I added one and restarted. The Monitor does read
serve/telemetry.py.The load figure is the proof that the panel consumes this sampler rather than the engine's own accounting: 100 % is my reader's engine-summed PDH value clamped at 100, while the panel had been showing the engine's 97 %.
The sampler's own answer, before and after (the Control's bundled interpreter, one sample, no load):
GET /metricsnow carrieshardware.gpu_power(175–242 W across a minute of generation, 48–52 °C), and thedevicesblock ofGET /v1/telemetrygetstempandpowertoo.The patch
Two files.
serve/telemetry.pygains a Windows branch ingpu_reader()— and the VRAM total for the header comes from DXGI instead of the registry fallback:serve/win_amd_sensors.py(~200 lines, ctypes only, no admin, no ROCm, nothing written to disk) returns the same dict_Amdand_Nvmlreturn, so nothing downstream had to change:tempfrom D3DKMT with ADLX as fallback,powerfrom ADLXGPUTotalBoardPower,utilfrom\GPU Engine(*)summed over the card's LUID and clamped to 100,mem_usedfrom\GPU Adapter Memory(luid_…)\Dedicated Usage,mem_totalfrom DXGIGetDesc2, plusfan_rpm/fan_pctfrom D3DKMT (extra keys, no tile for them yet).The PCIe tile needs a decision, not a reader
It stayed empty, and I don't think it can be filled on this driver: the tile is the traffic one (its labels read "Общая передача на выбранные GPU" / "Данные о передаче на GPU недоступны"), and #1871, #2273, #2614 and my own probe agree that PCIe throughput has no source here. The link, on the other hand, is readable without admin and without a vendor library — Gen4 x16 on this PC — so the tile could show generation and width instead, or be dropped. I could not reproduce the link read through
CM_Get_DevNode_PropertyWfrom Python (Get-PnpDevicePropertyanswers those four properties fine; myDEVPKEY_PciDevice_*key numbers returned "no such value"), so I left the link out of the patch rather than ship something unverified.Caveats
One machine, one driver version (32.0.32015.7029), one card (gfx1100). The patch is local to my install and an update would overwrite it, so I am not attached to its shape — the useful part is the finding: the tiles are fed by
serve/telemetry.py, and that is where a Windows AMD reader has to land. Happy to open a PR with the module if you want it in a branch.Disclosure: every number above was measured on my machine; the probe scripts, the patch and this text were prepared with an LLM assistant and reviewed before posting.
Update (01.11, 13:45): the fan, the clock and "Energy since start" — the gap is in the panel's data chain
Three readings reach
/metricsand still never reach the Monitor. LiveGET /metricson the running Control:GET /api/nativepasses all of it through underinstances[].metrics.hardware. Nothing is missing upstream.1. The Monitor builds its cards from
/api/native, and that translation drops the fan and the clock.src/lib/native-monitor.ts(readable from the shippedindex-k1Z_bgvQ.js.map), the per-device map:The tiles exist and are gated on the reading (
fan = gpuValue('fanPct','max'),clock = gpuValue('clockMhz','max')), andwithHostSensors()is meant to fill exactly these two fields from the host's own reading — the shipped comment even says so ("The fan and the clock are the host's own readings; the engine's metrics do not carry them (#3628)"). But on Windows + AMD the host's reader (host/server/device-probes.mjs→windows-gpu.mjs, the D3DKMT counters) produces load, memory and temperature only; thefanPct/clockMhzbranch indevice-probes.mjsis the Linux amdgpu sysfs path. So the merge has nothing to merge: before the fix,/api/monitor→gpus[0]had nofanPct/clockMhzkeys at all.2.
originalDashboard()never runs when a native Control holds the model.monitor.mjs:With a native Control the supervisor has no engine of its own (
engine.status "stopped", port 8080,metricsSource "none"), so the one translation that does mapfan_pctandclock_mhzis skipped. Only the host's own sensors reach/api/monitor— which is why the host gap is the thing to fix.3. "Energy since start" integrates a value that is always null here.
energy-meter.mjsintegratespowerW × dt, andtick()feeds ithardwareSnapshot().powerW— the host reader's power, null on Windows + AMD — while the panel shows 180–240 W taken from the engine dashboard. The tile sat at0.0 Whnext to a live 188 W.What fixed it, in the host only. The host now asks the native Control for its own three readings once a second and fills only the gaps in its own reading (a number the host measured itself still wins):
After a restart, with the interface file restored to its shipped state (no
gpu_fan_pct/gpu_clock_mhzanywhere in it), the Monitor shows:and
GET /api/monitorcarries them:So the gap is neither in the sensors nor in the tiles — it is in the host reading that the tiles are merged from. One honest caveat about the energy figure: it is measured board power + an estimate for the CPU (25 W idle → 125 W at full load, capped at 184 W), because this Windows build exposes no CPU package-power counter at all. Board, RAM, drives and PSU losses are not in it, so it will always read lower than a wall meter; if the tile is meant to be "the PC", the tile should say what it sums.
4. The fan percentage: neither "max RPM" is the right denominator.
MaxFanRPMGetGPUFanSpeedRangeGPUFanDutyA 90-second comparison against the GPU-Z sensor log: 88 of 90 power samples matched watt for watt (max deviation 3 W), temperature within 1 °C, RPM within ~12 rpm. GPU-Z also caught a real error in our reader: during the spin-down it shows 810 → 520 → 291 → 291 → 157 rpm while D3DKMT already answers 0 — the reader reports the command, not the physical state, only during that transition. Conclusion: take the percentage from
GPUFanDuty, keep the RPM division as a fallback only.5. ADLX answers more than was asked (method order taken from the official headers,
SDK/Include/IPowerMonitoring*.h; ADLX 5.0.124 on this driver does not answerQueryInterface, so slots 15–19 were probed one at a time in a throwaway process):GPUClockSpeedGPUVRAMClockSpeedGPUTemperatureGPUHotspotTemperatureGPUPowerGPUTotalBoardPowerGPUFanSpeedGPUVRAMGPUVoltageGPUMemoryTemperatureGPUSharedMemoryGPUFanDutyThis matters most on a card holding 15 GiB of model: memory runs 15–25 °C hotter than the core — during generation core 49–50 °C, hotspot 59 °C, GDDR6 72 °C — and the temperature tile shows the edge sensor only, so the hottest thing on the card is invisible in the panel. Hot-spot and memory temperature would be worth tiles.
6. Two things worth encoding. (a)
/api/hardwareand/api/monitoridentify the card by its PCI id (PCI\VEN_1002&DEV_744C&…) while/api/nativecalls it"amd:0";withHostSensors()matches readings byid, and it works today only because the UI's device inventory comes from/api/hardware— change where the inventory comes from and the host-sensor merge silently stops working. (b) Load is two different quantities: the host sums all engine instances (4–10 % at idle), GPU-Z reports the 3D engine (0–1 %); both give 100 % under real generation. Worth labelling which one the tile shows.The local change is now two small edits —
host/server/monitor.mjsandhost/server/index.mjs— and the interface file is back to its shipped state, because the host-side fix turned out to be sufficient.