Skip to content

Resolve the WinUI serving GPU by UUID - #702

Merged
eugr merged 1 commit into
mainfrom
codex/winui-gpu-launch
Dec 3, 2026
Merged

eugr merged 1 commit into
mainfrom
codex/winui-gpu-launch

Conversation

@eugr

@eugr eugr commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

WinUI passed the NVIDIA Management Library (NVML) list index from Serving GPU directly to CUDA. The two APIs can enumerate the same cards in different orders. On a Windows DGX Station with RTX PRO and GB300, selecting GB300 downloaded the correct core, but launch failed the core’s GPU architecture check. NVIDIA DGX Station development guide

WinUI now resolves the selected card’s UUID to its CUDA device number before loading. Desktop discovery and automatic download revision selection use the same GPU inventory as Settings. Without a visibility mask, the list retains its NVML order so existing saved indices keep naming the same cards. With CUDA_VISIBLE_DEVICES set, the list uses CUDA’s actual visible order.

WinUI loads the core on the physical GPU whose platform it used to choose the download. A core prepared for the selected architecture can load even when CUDA puts that GPU at a different index from NVML.

  • On a Windows DGX Station with RTX PRO and GB300, the author verified that WinUI launched the downloaded GB300 core after selecting GB300.
  • The Windows ARM64 single-file package built successfully. On RTX Spark N1X with CUDA_VISIBLE_DEVICES set to the GPU’s UUID, WinUI loaded a cached Qwen3.8-27B core and generated a chat response.
  • The Windows ARM64 Flare and bridge release tests passed. The GPU regressions cover opposite NVML and CUDA device orders and a visibility mask that hides one card. Four Flare cases were marked ignored, including three legacy-core fixture cases and one child-process helper.
  • The Windows ARM64 Helios release run excluded the Linux-only RoCE sysfs test and used LF bytes for the Kimi template’s digest check. All 62 integration tests that ran passed. Two unit tests passed after supplying the pinned MiMo and MiniMax templates. The packed-core publication test hit a Windows file-sharing error during a rerun and passed in isolation. The run left 78 cases marked ignored, including GPU and checkpoint checks. See docs/TODO.txt for the Windows fixture work.

Discord: eugr

WinUI used an NVML list index as the CUDA device number. NVML and CUDA
can enumerate the same GPUs in different orders, so selecting GB300 on
a Windows DGX Station could download the right core and then try to
load it on the RTX PRO.

Resolve the selected card's UUID against CUDA's visible devices before
loading the core. Use the desktop GPU inventory for discovery and
automatic download revision selection. Preserve the desktop's NVML
order on unmasked hosts and use CUDA's device order when a visibility
mask is inherited.

The chosen GPU now supplies both the platform for automatic downloads
and the CUDA device for launch. The existing core architecture check
can validate the card that the user selected.

The author verified the GB300 core launched on the Windows DGX Station
with both RTX PRO and GB300 installed. The ARM64 WinUI build loaded
Qwen3.8-27B and generated a reply on an RTX Spark selected by UUID.
Flare and bridge release tests passed, including reordered GPU indices
and inherited visibility. Helios release checks ran with Windows test
fixture adjustments for Linux sysfs and Kimi template line endings.
The two missing-template tests and a packed-core test that hit a file
sharing violation passed on retry. GPU and fixture-dependent cases
marked ignored were unrun.

Design-Signed-Off-By: Codex (gpt-6.2-sol); design-review=2e5b
@eugr
eugr merged commit 3d1614c into main Dec 3, 2026
3 checks passed
@eugr
eugr deleted the codex/winui-gpu-launch branch December 3, 2026 04:26
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