Skip to content

Let WinUI select the serving GPU - #700

Merged
eugr merged 1 commit into
mainfrom
feat/winui-gpu-selection
Dec 2, 2026
Merged

eugr merged 1 commit into
mainfrom
feat/winui-gpu-selection

Conversation

@eugr

@eugr eugr commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

WinUI always loaded single-GPU cores on GPU 0. On a machine with more than one GPU, that prevented users from choosing the card with a compatible architecture or enough free memory. The native loader already accepts a device index for the core’s single rank, so the desktop can pass the choice through its existing model load flow.

Settings → Server → Serving GPU lists visible NVIDIA cards by CUDA index, name, and reported memory when available. WinUI saves the selected index in desktop-state.json and passes it to the loader on the next load or reload. Discovery, automatic download revision selection, and model compatibility checks use the saved GPU. After a setting change, the dashboard continues to report memory for the GPU running the active model until reload.

Users can choose which card runs a single-GPU core. Settings without a saved choice default to GPU 0. WinUI accepts cores prepared for one local GPU.

  • On a DGX Station running Windows, the author verified that the dropdown listed both RTX PRO and GB300.
  • The Windows ARM64 single-file build succeeded. On RTX Spark N1X, UI automation verified that an unavailable saved index remained visible and that selecting and saving the installed GPU persisted GPU 0.
  • The Flare and WinUI bridge release suites passed 252 tests, including GPU setting persistence, negative-index rejection, the reload comparison, and compatibility against a nonzero GPU index. Three legacy fixture tests and one child-process helper were ignored by the Flare suite.

End-to-end serving after switching to a nonzero GPU remains unverified.

Discord: eugr

WinUI always passed GPU 0 to the model loader, so users with multiple
GPUs could not run a single-GPU core on another card. The loader already
accepts a CUDA device index for the core's single rank.

Add a Serving GPU dropdown backed by the NVIDIA device inventory. Save
the visible device index with desktop runtime settings and pass it to
the loader on the next model load or reload. Discovery, automatic
download revision selection, and compatibility checks use the saved
GPU. While serving, the dashboard reports memory for the active GPU.

Users can direct a single-GPU core to the card that fits their workload.
Existing settings without a GPU selection use GPU 0. WinUI accepts cores
prepared for one local GPU.

The Windows ARM64 single-file build and release suites passed for Flare
and the WinUI bridge, including settings persistence, rejection of a
negative index, and a compatibility check against GPU 1 metadata. Three
legacy fixture tests and one child-process helper were ignored by the
Flare suite. UI automation verified selection and saving on RTX Spark
N1X. The author confirmed the dropdown listed both RTX PRO and GB300
on a DGX Station running Windows. End-to-end serving after switching
to a nonzero GPU remains unverified.

Design-Signed-Off-By: Codex (gpt-6.2-sol); design-review=2e5b
@eugr
eugr merged commit 95050ff into main Dec 2, 2026
1 check passed
@eugr
eugr deleted the feat/winui-gpu-selection branch December 2, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant