[PR #3798] [GUI] Setup wizard: show the VRAM of AMD cards on Windows (host probe reports 0) #4785

Open
opened 2026-11-07 15:39:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 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 sets vramGb: 0. OnboardingMemory preferred 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/hardware and /api/native:

before after
host probe, RX 9070 XT vramGb: 0 unchanged
engine list, RX 9070 XT vram_gb: 15.9 unchanged
wizard VRAM / total 0.0 GB / 64 GB 16 GB / 80 GB

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's vram_gb for 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 keep memoryInventory'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 --noEmit in apps/host at 31e96c96 (Node 24, Windows 11): no errors.
  • The old and new component rendered side by side against this PC's real /api/hardware and /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.
  • Same data plus a second AMD card that the engine does not list (a Radeon Pro VII in this PC): that card shows 0, the RX 9070 XT shows 15.9 GB, so the total counts only the card the engine can use.

Failed:

  • npm test in apps/host on Windows: errors I did not investigate (e.g. EPERM removing a temp folder in timeskip-real.test.mjs), unrelated to this file; not compared against main.

Not run:

  • No test covers this component, and I added none. Other GPU vendors and OSes (NVIDIA, Intel, macOS, Linux), where the host already reports a value and the branch is not taken, were not tried on hardware.
  • The wizard itself was not re-run end to end with this exact commit; the check above renders the component with real data instead.

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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3798 **Author:** [@chicco83](https://github.com/chicco83) **Created:** 10/23/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `wizard-vram-amd-windows` --- ### 📝 Commits (1) - [`31e96c9`](https://github.com/Niko1221/Strata/commit/31e96c961cfda50e9ca60db95359c6fbf9a51729) [GUI] Setup wizard: show the VRAM of AMD cards on Windows (host probe reports 0) ### 📊 Changes **1 file changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/src/components/OnboardingMemory.tsx` (+13 -2) </details> ### 📄 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 sets `vramGb: 0`. `OnboardingMemory` preferred 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/hardware` and `/api/native`: | | before | after | |---|---|---| | host probe, RX 9070 XT | `vramGb: 0` | unchanged | | engine list, RX 9070 XT | `vram_gb: 15.9` | unchanged | | wizard VRAM / total | 0.0 GB / 64 GB | 16 GB / 80 GB | ## Related 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's `vram_gb` for 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 keep `memoryInventory`'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 --noEmit` in `apps/host` at `31e96c96` (Node 24, Windows 11): no errors. - The old and new component rendered side by side against this PC's real `/api/hardware` and `/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. - Same data plus a second AMD card that the engine does not list (a Radeon Pro VII in this PC): that card shows 0, the RX 9070 XT shows 15.9 GB, so the total counts only the card the engine can use. **Failed:** - `npm test` in `apps/host` on Windows: errors I did not investigate (e.g. `EPERM` removing a temp folder in `timeskip-real.test.mjs`), unrelated to this file; not compared against `main`. **Not run:** - No test covers this component, and I added none. Other GPU vendors and OSes (NVIDIA, Intel, macOS, Linux), where the host already reports a value and the branch is not taken, were not tried on hardware. - The wizard itself was not re-run end to end with this exact commit; the check above renders the component with real data instead. ## 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4785
No description provided.