Repository navigation
fix(studio/rocm): don't install for a shadowing iGPU on mixed AMD hosts (#7776) - #7778
Conversation
…ts (unslothai#7776) On a board with both an AMD APU and a discrete Radeon, HIP enumerates the iGPU first, so _detect_windows_gfx_arch picked index 0 and the installer pulled the iGPU's wheel family -- a gfx1036 Raphael iGPU shadowing a gfx1200 RX 9060 XT, leaving the discrete card unused until the reporter set HIP_VISIBLE_DEVICES=1 by hand. When no visible-device mask is pinned and more than one distinct arch is enumerated, skip a leading shadowing APU arch so the discrete card decides the wheel family, and print which GPU was chosen plus the HIP_VISIBLE_DEVICES override. An explicit HIP_VISIBLE_DEVICES / ROCR_VISIBLE_DEVICES value still wins verbatim. The Strix arches (gfx1150/1151/1152) are deliberately excluded from the skip set: they are first-class unified-memory training targets, so their selection is unchanged. Signed-off-by: Tai An <[email protected]>
…_VISIBLE_DEVICES Addresses both review findings on unslothai#7778. 1. setup.ps1 resolved the gfx arch itself (hipinfo and amd-smi paths) and built $ROCmIndexUrl from it *before* invoking install_python_stack.py, and _ensure_rocm_torch() returns early once UNSLOTH_ROCM_TORCH_INSTALLED=1 -- so a fresh Windows install on a gfx1036 + gfx1200 host still received gfx103X-all wheels and never reached the Python-side repick. Resolve-ShadowingGfxPick mirrors _dedup_pick() and is applied at both PowerShell pick sites. 2. HIP honours CUDA_VISIBLE_DEVICES with the same semantics as its own masks -- _pick_rocm_gfx_target in install_llama_prebuilt.py already resolves all three identically -- so a ROCm install launched with only CUDA_VISIBLE_DEVICES set was treated as unpinned and could be overridden by the iGPU skip. It now counts as a pin on both sides ("" / "-1" still mean "no mask"). Tests: CUDA_VISIBLE_DEVICES pin + empty-is-not-a-pin cases, a setup.ps1 <-> Python parity check on the shadowing-arch list (the list now exists in two places), and the pre-existing shadowing tests now clear CUDA_VISIBLE_DEVICES so CI runners that export it cannot flip the assertions. Signed-off-by: Tai An <[email protected]>
|
Thanks — both findings were correct, and both are fixed in P1 — the repick never fired on a fresh Windows install. Confirmed: Rather than duplicate the condition, I added P2 — Tests
Verified locally: 484 passed / 3 skipped across |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d2ebc714e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| """The shadowing-APU skip (#7776) exists twice: studio/setup.ps1 resolves the | ||
| arch and builds $ROCmIndexUrl before it ever invokes the Python stack | ||
| installer, so both copies of the list have to agree or one entry point keeps |
There was a problem hiding this comment.
Cover the root Windows installer too
This new parity guard says the skip exists only in studio/setup.ps1 and install_python_stack.py, but the repository still has the root install.ps1 Windows resolver: it assigns $ROCmGfxArch from the first gcnArchName (install.ps1:2150-2153) and later builds $ROCmIndexUrl from that value (install.ps1:2524-2568). Users who install through install.ps1 on a gfx1036,gfx1200 host therefore still get gfx103X-all wheels while this test passes, so include that installer in the shadowing list/selection and parity check.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The observation is right that install.ps1 has the same first-gcnArchName pick, but the stated consequence does not hold, so I am leaving the parity test as is.
Traced the actual install path: install.ps1 resolves the arch and installs ROCm torch, then invokes unsloth studio setup. The ROCm block in setup.ps1 is NOT gated by SKIP_STUDIO_BASE and re-installs with --force-reinstall using the corrected arch, and $CuTag is still cpu on an AMD host because it derives from the pin plus nvidia-smi presence and never inspects the installed wheel. So a gfx1036,gfx1200 host does not end up on gfx103X-all wheels; it downloads them once and then gets gfx120X-all.
The real costs are a wasted multi-GB download, a misleading log line, and a genuine window if install.ps1 fails between its torch install and the setup call. Worth fixing, but it is a third copy of the resolver and install.sh plus studio/setup.sh have the same shape, so it belongs in a focused follow-up that ports the logic to all of them and widens the parity check to every installer at once. Adding the assertion here would just fail against code this PR does not touch.
|
CI triage on the red checks — none of them come from this PR.
Root cause is #7767, which split the query building out of Already being fixed in #7629, which retargets both assertions at the new locations. Nothing for this PR to do.
This PR only touches |
…indows wheels The shadowing-iGPU preference returned the first non-integrated arch in the enumeration regardless of whether AMD ships Windows wheels for it. On an unpinned gfx1036 + gfx1010 host that deposed a supported Raphael APU for a discrete card absent from _GFX_TO_AMD_INDEX_ARCH, so _windows_rocm_index_url resolved to None and the install fell back to CPU -- strictly worse than the shadowing the preference exists to undo. Only prefer the discrete arch when it actually has an index, unless the integrated pick has none either, in which case the swap costs nothing and the discrete card still wins. Both directions are covered: gfx1036+gfx1010 keeps the APU (fails without this change, returning gfx1010), gfx1013+gfx1010 still yields to the discrete card so the guard is not over-tightened. Signed-off-by: Tai An <[email protected]>
|
Went through all four. One was a real regression this PR introduced — fixed in ✅ "Prefer supported dGPUs before dropping the iGPU" — correct, fixedThis one was mine and it was a genuine regression. The predicate returned the first non-integrated arch unconditionally, so on an unpinned Reproduced before fixing rather than taking it on faith: Now the discrete arch is preferred only when it actually has an index — unless the integrated pick has none either, in which case the swap costs nothing and the dGPU still wins. Both directions are covered ( ⏭️ The other three — real, but pre-existing and outside this PR
All three are the same class of issue as #7776 in code this PR doesn't modify. Happy to do them as a focused follow-up — @danielhanchen, say the word and I'll open one covering the static |
…erence Both halves of the unslothai#7776 preference existed in install_python_stack.py but only half of it in the PowerShell mirror, which resolves the arch and builds $ROCmIndexUrl itself before the Python installer ever runs. - Resolve-ShadowingGfxPick deposed a supported APU for any discrete arch, even one AMD ships no Windows wheels for (gfx1036 + an older gfx1010): the repick resolved to no index at all and dropped the host to CPU, strictly worse than the shadowing it undoes. It now consults $archFamilyMap, mirroring the _pick_has_wheels guard in _dedup_pick(). The map moves to script scope so detection can read it; contents are unchanged, so the four-way parity test still sees the same 18 entries. - The WMI fallback took the first AMD adapter before name -> arch inference, so an Adrenalin-only host listing a 780M ahead of an RX 9060 XT still inferred gfx1103 and installed gfx110X-all. It now keeps every AMD adapter, infers an arch for each, and runs the same preference over the list. Regression tests fail on the previous revision and pass on this one.
🌊 Poseidon Review 🐚Reviewed Three findings remain open: one P2 (CUDA_VISIBLE_DEVICES pin/index mismatch causes wrong wheels on amd-smi/WMI paths), one P1 docstring that actively contradicts the new shadowing behaviour, and one P3 advisory parity gap. Every run except one raised the same two core issues, which are confirmed present at the current head. Fix the pin/index mismatch first: it is the only one that picks wrong wheels at runtime. P2 - Add CUDA_VISIBLE_DEVICES to _pick_visible_index and the PS index-pick sites
The repo itself documents the gap: The same gap exists in setup.ps1: # _pick_visible_index: match the three-var loop in _visible_devices_pinned
for _env in ("HIP_VISIBLE_DEVICES", "ROCR_VISIBLE_DEVICES", "CUDA_VISIBLE_DEVICES"):And in P1 - Update _detect_windows_gfx_arch docstring to match shadowing behaviour Line 706 says "The first GPU is used when no env var is set." That is now false for exactly the scenario this PR adds: on an unpinned gfx1036+gfx1200 host, The same paragraph (lines 704-706) also omits On multi-GPU hosts, detected gfx tokens are deduplicated (preserving
enumeration order). HIP_VISIBLE_DEVICES / ROCR_VISIBLE_DEVICES /
CUDA_VISIBLE_DEVICES selects which to install for; without a pin and
with a shadowing iGPU leading the enumeration, the discrete GPU is
preferred instead.P3 - Add multi-GPU advisory to Resolve-ShadowingGfxPick for non-shadowing hosts The Python After the early return at line 1559, when |
_visible_devices_pinned() treats CUDA_VISIBLE_DEVICES as a pin, but _pick_visible_index() only read HIP/ROCR. On the probes that enumerate every GPU regardless of the masks (amd-smi, WMI), CUDA_VISIBLE_DEVICES=1 on a gfx1036 + gfx1200 host therefore suppressed the shadowing skip *and* resolved to index 0, installing the iGPU's wheels for the device the user masked away. Same mismatch in setup.ps1's $_hipVisIdx and $visGpu picks. All three masks are now read at every site, matching _pick_rocm_gfx_target in install_llama_prebuilt.py. Also corrects the _detect_windows_gfx_arch docstring, which still claimed the first GPU always wins without a mask. Signed-off-by: Tai An <[email protected]>
|
Thanks @LeoBorcherding — the P2 is right and I was wrong to defer it. Fixed in P2 — pin/index mismatch (real regression, this PR's)The argument that convinced me is that Reproduced against the old source before fixing rather than taking it on faith: All three masks are now read at every site — Three regression tests, each verified failing on the pre-fix source and passing after:
The existing P1 — docstringRewritten, and it now names
I also dropped the now-stale "ignores P3 — advisory parityLeaving this one out deliberately. Footprint is unchanged at 4 files. 🤖 Generated with Claude Code |
…7778 The shadowing-iGPU preference was correct, but each pick site still resolved HIP/ROCR/CUDA_VISIBLE_DEVICES with its own inline expression and they disagreed, so a mask the pin check honoured could resolve to a different GPU than the one the user asked for. On a mixed host that lands on index 0, which is the iGPU the preference exists to skip. setup.ps1 - Add Resolve-VisibleGpuIndex and use it at all four pick sites (hipinfo, amd-smi list, amd-smi static --asic, WMI name inference). Previously the hipinfo expression rejected " 1 " and the amd-smi one rejected "1,0". - The static --asic branch now collects every gfx token and runs the repick instead of taking the first regex match. - WMI inference indexes the adapter list rather than the inferred arch list, so an unrecognised name cannot shift a mask onto the wrong physical card, and it only repicks when every adapter mapped: an unknown name may itself be the discrete card. - Filter WMI adapters on ConfigManagerErrorCode so a disabled or driver-errored Radeon cannot depose a working iGPU. Get-CimInstance to match the rest of the repo. install_python_stack.py - _pick_visible_index now skips "" and "-1" and reads the next mask, matching _visible_devices_pinned. Before, HIP_VISIBLE_DEVICES="" with CUDA_VISIBLE_DEVICES=1 counted as pinned while the index resolved to GPU 0. - Out-of-range and unparseable masks warn instead of silently using GPU 0. - Strip the ":sramecc+:xnack-" suffix from gcnArchName like setup.ps1 does; a suffixed token matched neither the wheel table nor the skip set. - Prefer a wheel-backed candidate whenever one exists, not only when the picked arch has wheels, so gfx1036 + gfx1010 + gfx1200 no longer stops at gfx1010 and drops the host to CPU torch. Arch list - Drop gfx1037: it is not an AMDGPU target in LLVM, so no Windows tool emits it. - Add gfx1033 (Van Gogh) and gfx1153 (Krackan Point 2), both APUs. gfx1033 has a wheel family, so leaving it out let it act as the "discrete" card. - gfx1013 is Cyan Skillfish, not Van Gogh. Both advisories now tell the user to setx HIP_VISIBLE_DEVICES so the chosen GPU is used at runtime, not just at install time: the wheels alone do not change which device HIP enumerates first. Tests - TestSetupPs1ShadowingBehaviour actually executes Resolve-ShadowingGfxPick and Resolve-VisibleGpuIndex under pwsh, slicing them out by AST. The existing parity class only greps text, so a rename failed it while a semantic bug passed. - Regression tests for each fix above.
|
Thanks for this, the shadowing preference itself is the right call and the wheel-aware guard you added in The root causeEvery pick site resolved the visible-device masks with its own inline expression, and they did not agree with each other or with Running the real expressions from
The two branches fail on opposite inputs. So instead of patching each site, What else that fixedWMI ignored the mask entirely. The call site always passed An unrecognised discrete card could hand the machine to the iGPU. A name not in Disabled adapters counted. Collecting every AMD adapter means a disabled or driver-errored Radeon could depose a working iGPU, so there is now a The static Python side
Also: out-of-range and unparseable masks warn instead of silently using GPU 0; Arch list
Tests
One thing worth deciding before mergeThis fixes which wheels get installed. It does not change which GPU is used at runtime. Nothing under I reworded both advisories to say Left for follow-up
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: afa7ad76f9
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # setup.ps1 resolves all three masks through Resolve-VisibleGpuIndex, but it also | ||
| # applies the shadowing-iGPU preference (#7776) that _pick_rocm_gfx_target() does | ||
| # not, so the two can name different GPUs on a mixed APU + dGPU host. |
There was a problem hiding this comment.
Honor setup's dGPU repick when selecting prebuilts
In the mixed APU+dGPU case described here, setup.ps1 now forwards the repicked dGPU arch (for example gfx1200), but _apply_host_overrides() still classifies any forwarded arch that appears in the probed physical list as advisory and returns the probed active arch unchanged when _active is the leading iGPU. As a result, the same fresh Windows install can install PyTorch for the dGPU while install_llama_prebuilt.py downloads the iGPU ROCm prebuilt, because the newly forwarded repick is discarded; either apply the same shadowing preference to the probe or treat setup's repicked --rocm-gfx as authoritative for the prebuilt selection.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Checked this one closely and I do not think it holds. On the host in the issue there is no iGPU prebuilt to download: _gfx_is_windows_hip_supported("gfx1036") is False and gfx1036 is absent from WINDOWS_HIP_PREBUILT_GFX_TARGETS (gfx1030/1031/1032/1034/1100/1101/1102/1103/1150/1151/1200/1201/908/90a), so the described split cannot occur there.
It does reach on a gfx1103 + gfx1200 host, but honouring the forward would make it worse, not better: the prebuilt has to run on HIP device 0, which is still the 780M until the user sets the mask. Installing the gfx1200 bundle there yields something unrunnable, whereas keeping gfx1103 runs. And it self-corrects: once HIP_VISIBLE_DEVICES=1 is set, hipinfo enumerates only gfx1200, _active equals the forward, and the forward becomes authoritative. That is the behaviour test_forwarded_gfx_does_not_clobber_probed_arch pins deliberately. Leaving as is.
Both found by simulating the change across the OS x GPU-vendor product rather than by reading it. - _dedup_pick now says so when an honoured pin selects a GPU AMD ships no Windows wheels for while another enumerated GPU has them. The pin is still honoured verbatim, but the install drops to CPU torch and the mask is the reason, which was previously invisible. - _pick_visible_index takes warn=False for callers whose list is deduplicated. The Linux Strix reroute indexes _detect_amd_gfx_codes(), which collapses duplicates, so a dual same-arch box (two gfx1151) has a 1-element list and a perfectly valid HIP_VISIBLE_DEVICES=1 read as out of range. That printed a false "out of range" warning on a healthy Linux host. The Windows arch-selection path still warns, where the index space really is devices.
|
Simulated the branch rather than just reading it, because the risky part of this change is the paths it does not obviously touch. Two more fixes came out of that, pushed in Coverage
Backwards compatibility
The 40 cases that now install CPU torchThese are all a host where the user explicitly pinned a GPU that has no AMD Windows wheels, for example The regression the simulation caught
Not applicableNo browser surface is involved. The diff is 3 Python/PowerShell installer files plus tests, with no Note on the underlying issueWorth recording that this is a well-known failure class rather than a one-off report: ROCm/legacy-rocm-build#6167 documents Sim scripts are throwaway and not in the diff; happy to attach them if useful. |
…fixes Three review items on the last round, all confirmed against the code at head. Mask semantics (mine to fix: 6d0ac82 got this wrong). "" and "-1" do not mean "no mask", they select no GPU at all, so falling through to the next variable was wrong. The ROCm runtime stores an explicitly empty var as " " (clr flags.cpp), then picks the HIP mask whenever its first byte is not NUL (paldevice.cpp on Windows, rocdevice.cpp on Linux), so an empty HIP_VISIBLE_DEVICES shadows CUDA_VISIBLE_DEVICES rather than deferring to it; parseRequestedDeviceList surfaces zero devices for " " and "-1", which ROCR states outright in amd_filter_device.h. _visible_devices_pinned and _pick_visible_index are now first-set-wins and treat any set value as a deliberate selection, matching _pick_rocm_gfx_target in install_llama_prebuilt.py and PyTorch's own _parse_visible_devices. Resolve-VisibleGpuIndex and Resolve-ShadowingGfxPick mirror it. Three tests asserted the old premise and now assert the runtime's. Resolve-ShadowingGfxPick did not prefer wheel-backed cards when the APU has no wheels either. The predicate went vacuously true and took the first non-integrated arch, so gfx90c,gfx1010,gfx1200 picked gfx1010, left $ROCmIndexUrl null and installed CPU torch despite the supported gfx1200. Now mirrors _dedup_pick's `_withWheels or (...)`. The Python WMI probe listed disabled adapters. setup.ps1 filters on ConfigManagerErrorCode but `(Get-CimInstance Win32_VideoController).Name` did not, so on a driver-only laptop a disabled RX 9060 could depose a working 780M and pull wheels for a GPU Windows never exposes. Same filter both sides.
|
@codex review |
1 similar comment
|
@codex review |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1cb4f48d51
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # HIP still enumerates the iGPU as device 0 at runtime, so the wheels alone do | ||
| # not steer training to the dGPU. setx makes it persist across sessions. | ||
| substep "Run 'setx HIP_VISIBLE_DEVICES $discreteIdx' and reopen your terminal so Unsloth uses $discreteArch at runtime too, not just at install time" "Cyan" |
There was a problem hiding this comment.
Persist the dGPU selection for runtime
On an unmasked mixed APU+dGPU host such as gfx1036,gfx1200, this function selects and installs the gfx120X-only wheel family but merely prints the setx command. HIP therefore still exposes the incompatible iGPU as device 0 on subsequent launches unless the user notices and manually runs the command, so training can continue targeting the shadowing APU or fail because the installed wheel does not support it. Apply the selected mask automatically (or persist an equivalent Studio-specific runtime setting) when repicking the dGPU.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The gap is real and I want it on record, but I am not taking the proposed remedy in this PR.
Accurate parts: this changes install-time wheel selection only, and on an unmasked mixed host HIP still enumerates the APU as device 0 afterwards. I flagged that limitation when I first reviewed this PR, and it is why the advisory prints the setx line twice.
Why not apply the mask automatically. setx writes a persistent per-user environment variable into the registry. It affects every HIP and ROCm application on that machine, not just Unsloth, it outlives an uninstall, and it strands the user if they later remove the discrete card. Silently setting it also contradicts the rule the rest of this PR is built on, which is that a visible-device selection belongs to the user and is honoured verbatim; the shadowing repick deliberately never overrides one. An installer that writes the mask on the user's behalf is a product decision with side effects outside this project, not a correctness fix, so it is the maintainer's call rather than something to slip into a wheel-selection PR.
On the Studio-specific alternative: Studio already pins the mask for its own child processes at spawn (_pin_visible_gpu_env in studio/backend/core/inference/llama_cpp.py sets CUDA_VISIBLE_DEVICES plus a HIP or ROCR mirror, and the comment there is explicitly about a gfx1036 iGPU under a gfx103X prebuilt). So the runtime layer already has a device-selection mechanism, in files this PR does not touch. Making that layer capability-aware for mixed AMD hosts is worth doing and is a separate change with its own tests.
Net effect for the reported host is still a strict improvement rather than a regression: before, it installed gfx103X wheels that cannot drive the RX 9060 XT, which is what #7776 reported; now it installs wheels for the discrete card and tells the user the one command that makes the runtime match. Leaving this open as a follow-up rather than half-implementing it here.
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #7776
The bug
On a board carrying both an AMD APU and a discrete Radeon, HIP enumerates the iGPU
first.
_detect_windows_gfx_archresolves the arch withtokens[_pick_visible_index(len(tokens))], which is index0when no mask is set — sothe installer read the iGPU's arch and pulled its wheel family. In the report that
was a
gfx1036Raphael iGPU shadowing agfx1200RX 9060 XT:gfx103X-allwheels wentin, the discrete card was never loaded into, and the reporter only got the right wheels
after setting
HIP_VISIBLE_DEVICES=1and rerunning by hand.The fix
In
_dedup_pick, when no visible-device mask is pinned and more than one distinctarch is enumerated:
HIP_VISIBLE_DEVICES.An explicit
HIP_VISIBLE_DEVICES/ROCR_VISIBLE_DEVICESvalue still wins verbatim(
_visible_devices_pinned()treats only""and-1as "no mask"), so a user whopinned the iGPU on purpose keeps getting the iGPU.
The Strix arches (
gfx1150/gfx1151/gfx1152) are deliberately excluded from theskip set — they are first-class unified-memory training targets with their own
arch-specific index, so their selection is untouched. The skip set is only the legacy
APUs that share a board with a dGPU:
gfx90c,gfx1013,gfx1035,gfx1036,gfx1037,gfx1103.This covers both halves of the ask in the issue — "have the installer detect this
situation and suggest setting
HIP_VISIBLE_DEVICES". If you'd rather not have theinstaller re-pick at all, dropping the
_SHADOWING_INTEGRATED_GFXbranch leaves justthe advisory message and the rest still applies.
Review follow-up (
2d2ebc7)Two gaps were raised in review and both are fixed here:
setup.ps1never reached the repick. It resolves the arch itself (hipinfo andamd-smi paths) and builds
$ROCmIndexUrlfrom it before invoking the Python stackinstaller, and
_ensure_rocm_torch()then returns early onUNSLOTH_ROCM_TORCH_INSTALLED=1— so a fresh Windows install still pulled the iGPU'swheel family.
Resolve-ShadowingGfxPickmirrors_dedup_pick()and is applied at bothPowerShell pick sites.
CUDA_VISIBLE_DEVICESwas not treated as a pin._pick_rocm_gfx_targetininstall_llama_prebuilt.pyalready resolves all three masks identically ("AMD's HIPruntime honours all three env vars with identical semantics"), so a ROCm install
launched with only that var set was wrongly considered unpinned. It now counts as a
pin on both sides;
""and-1still mean "no mask".Tests
Five regression tests in
TestWindowsGfxArchDetection:gfx1036thengfx1200, no maskgfx1200(discrete wins)HIP_VISIBLE_DEVICESHIP_VISIBLE_DEVICES=0gfx1036(explicit pin honoured)gfx1151thengfx1200, no maskgfx1151(Strix unchanged)gfx1036alonegfx1036(nothing to prefer)|
CUDA_VISIBLE_DEVICES=0|gfx1036(HIP honours it, so it is a pin) ||
CUDA_VISIBLE_DEVICES=""|gfx1200(empty means no mask) |Plus
TestShadowingIntegratedGfxParityintest_rocm_arch_table_parity.py: the archlist now exists in both
setup.ps1andinstall_python_stack.py, so it gets a paritytest like the repo's other duplicated tables, and an assertion that the Strix arches
stay out of both copies.
pytest test_rocm_support.py test_rocm_arch_table_parity.py→ 484 passed, 3 skipped.Across the whole
tests/studio/install/directory the failure count is identicalbefore and after this branch (47, all pre-existing Windows/macOS-path failures on this
host); the only delta is the 5 new tests passing.
🤖 Generated with Claude Code