mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3798] [GUI] Setup wizard: show the VRAM of AMD cards on Windows (host probe reports 0) #4785
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#4785
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/3798
Author: @chicco83
Created: 10/23/2026
Status: 🔄 Open
Base:
main← Head:wizard-vram-amd-windows📝 Commits (1)
31e96c9[GUI] Setup wizard: show the VRAM of AMD cards on Windows (host probe reports 0)📊 Changes
1 file changed (+13 additions, -2 deletions)
View changed files
📝
apps/host/src/components/OnboardingMemory.tsx(+13 -2)📄 Description
Problem and result
On Windows the setup wizard's "Your computer" row showed VRAM 0.0 GB and a total equal to the RAM alone for AMD cards. The host probe (
server/hardware.mjs,Win32_VideoController) cannot read AMD VRAM and setsvramGb: 0.OnboardingMemorypreferred those host numbers and ignored the engine's own list (native.hardware.gpus[].vram_gb), which has the real size. The Model screen uses the engine's list, so the two screens disagreed.Observed on one Windows 11 PC (Ryzen 5 9600X, 64 GB RAM, RX 9070 XT, engine bundle
0.1.47-windows-x86_64-hip-rx9070), reading the running app's/api/hardwareand/api/native:vramGb: 0vram_gb: 15.9Related discussion
none (small fix; I found no open or closed issue or PR on this).
Approach
In
OnboardingMemory.tsx, when the host reports 0 for a dedicated card, take the engine'svram_gbfor the card with the same name. The position in the list is used only when host and engine list the same number of cards; a card the engine does not list stays at 0 instead of borrowing another card's figure. The VRAM total is now the sum of that corrected list (unified-memory machines keepmemoryInventory's shared-pool result). Cards where the host already has a value, and the no-host-data path, behave as before.Validation
Passed:
npx tsc --noEmitinapps/hostat31e96c96(Node 24, Windows 11): no errors./api/hardwareand/api/native(Vite dev page, read-only requests to the running app): old 0.0 GB / 64 GB, new 16 GB / 80 GB, as in the table.Failed:
npm testinapps/hoston Windows: errors I did not investigate (e.g.EPERMremoving a temp folder intimeskip-real.test.mjs), unrelated to this file; not compared againstmain.Not run:
Limits
Matching by name uses a loose substring comparison. Two cards with the same name in the host list (for example two identical GPUs) would both take the first matching engine entry; the position fallback does not apply in that case.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.