Repository navigation
Resolve the WinUI serving GPU by UUID - #702
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_DEVICESset, 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.
CUDA_VISIBLE_DEVICESset to the GPU’s UUID, WinUI loaded a cached Qwen3.8-27B core and generated a chat response.docs/TODO.txtfor the Windows fixture work.Discord: eugr