Repository navigation
Detect the Radeon AI PRO R9700 (gfx1201): it carries neither 9070 nor 9080, so name inference found nothing - #8573
Conversation
The name-to-gfx tables matched RDNA 4 Navi 48 on 9070|9080 only. The workstation card is branded Radeon AI PRO R9700, which contains neither token, so the first-match-wins table returned nothing, no arch was inferred and the installer fell back to CPU torch. On a host with the HIP SDK present the gcnArchName probe answers first and the gap is invisible, which is why the R9700 reporters in #7624 and #7307 never hit it. On a plain Windows 11 box with a single R9700 and no SDK, name inference is the only path left and the card is simply reported as not detected. Add R9700 to all six copies of the table (install.sh twice, install.ps1, studio/setup.sh, studio/setup.ps1, studio/install_python_stack.py). The token is R9700 rather than a bare 9700 so the 2002 ATI Radeon 9700 PRO cannot pick up RDNA 4 wheels.
|
Codex Review: Didn't find any major issues. 🚀 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". |
|
Codex Review: Didn't find any major issues. 🎉 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". |
|
CI status, since the red here is not this PR. The two install legs went green on rerun. The four remaining reds are all failures on main that this branch inherits:
So this one goes green once those merge and it reruns against current main. Nothing to change here. |
|
CI triage for this PR: nothing here is this PR's fault, and two of the red checks are not failures at all. The three Backend failures on Python 3.10 through 3.13 are main's own defect, reproduced on a clean detached worktree at with
One extra Backend failure on this PR only, and it is also main's, already fixed: That assertion is pure AST analysis of
|
One conflict, in .github/workflows/cross-platform-parity-ci.yml, and it is purely additive on both sides. main (#8573, the Radeon AI PRO R9700 gfx1201 detection) appended tests/studio/test_amd_name_arch_r9700.ps1 to both the pull_request and the push path filters and added an "AMD GPU-name arch table tests" step at the end of the parity job. This branch appended tests/studio/test_application_control_cli_fallback.ps1 plus studio/src-tauri/src/process.rs to the same two path filters, and an "Application Control CLI fallback tests" step in the same place, because the fallback test pins install.ps1's trampoline string against process.rs's copy. Neither change touches the other's entries, so both are kept: both path entries in both trigger blocks, both steps, main's first. Dropping either side would silently stop a suite from running on the change it guards. scripts/lint_workflow_triggers.py passes, and both PowerShell suites plus the existing AMD venv repair and Intel registry suites run green off the merged workflow.
What the user sees
A Windows 11 box with a single AMD Radeon AI PRO R9700 installs and reports no GPU at all: the
installer says
gpu none (chat-only / GGUF), PyTorch lands on the CPU wheels, and nothing in theUI offers the card. Reported by @aelfwyne on #8398 ("New install on windows 11 machine, R9700 Pro
single GPU, not detected").
This is not the PowerShell scalar-unroll defect that #8398 fixed (#8335). That one dropped a lone
healthy adapter before inference ever ran. This one is a gap in the table inference feeds.
The mechanism
Six copies of the GPU-name to gfx-arch table match RDNA 4 Navi 48 on the pattern
9070|9080:The workstation Navi 48 is branded Radeon AI PRO R9700. That string contains neither
9070nor
9080, so a first-match-wins walk of the table falls off the end, no arch is inferred, andevery caller treats "no arch" as "not an AMD GPU we can serve" and routes to CPU torch.
Checked against the shipped tables before the fix:
Why the other R9700 reporters never hit it
Name inference is the last resort. It only runs when
rocminfo/amd-smi/hipinfofail toreport a
gcnArchName. Both hardware reporters who confirmed this card as gfx1201 had a workingHIP SDK or
amd-smi, so the probe answered first and the table was never consulted:llama-serversegfaults on startup — plus an iGPU/HIP crash Studio doesn't guard against #7307, "two Radeon AI PRO R9700s (gfx1201, 32 GB each)", pulling the rocm-gfx120X bundleBoth back it with real
rocminfo/ torch output, which is where the gfx1201 mapping in this PRcomes from. A plain Windows host with no SDK has only the marketing name to go on, which is why
the single-card case is the one that surfaced.
Files touched
All six copies of the name table, each keeping its own idiom:
install.ps1$nameArchTable, gfx1201 rowinstall.sh_infer_amd_gfx_arch_from_gpu_name()install.shcase "$_gpu_disp_mkt"(detection banner and theUNSLOTH_ROCM_GFX_ARCHtip)studio/setup.ps1$nameArchTable, gfx1201 rowstudio/setup.shcase "$_setup_mkt"studio/install_python_stack.py_WIN_GPU_NAME_ARCH_TABLEThe token is
R9700, not a bare9700. ATI shipped a Radeon 9700 PRO in 2002, and a loose tokenwould match it and hand a 24-year-old card RDNA 4 wheels.
R9700matches every spelling of thereal adapter (
AMD Radeon AI PRO R9700,AMD Radeon(TM) AI PRO R9700, with or without a capacitysuffix) and nothing else in any row of any table.
What I deliberately did not add
AMD's product page mentions an R9600 series and an R9000S series in passing, with no published
arch and no report in this tracker. Navi 44 would be the guess, and a wrong arch is worse than a
missing one because it installs the wrong wheels, so those stay out until someone shows up with
one. There is no RDNA 4 Radeon PRO W-series product to add.
Verification
R9700has to sit on the gfx1201 arm, and on noother arm, in both
.ps1copies.an actual
caseevaluation, the PowerShell rows through PowerShell's own-match. Every namethe tables already answered for resolves unchanged, and
ATI Radeon 9700 PRO,ATI Radeon 9800 PRO,AMD Radeon R9 Fury X,AMD Radeon Pro WX 9100,AMD Radeon RX 5700 XTandAMD Instinct MI300Xall still match nothing.at a time and the covering suite fails; loosening
R9700to9700fails all four suites. Noassertion survived its mutant.
Tests extended:
tests/studio/install/test_rocm_arch_table_parity.py- the R9700 joins_GPU_NAME_LEAF_CASESand
_AMD_DOCUMENTED_ARCH, so all six copies plus the spoof fixture are held to the sameanswer and to the right wheel index leaf, and the cross-file contract between
_WIN_GPU_NAME_ARCH_TABLE,_GFX_TO_AMD_INDEX_ARCHand the.ps1tables covers the new entry.Plus a guard that the arm does not swallow the pre-RDNA cards.
tests/studio/install/test_rocm_support.py-_gfx_arch_from_gpu_name()mapping.tests/test_windows_amd_gpu_scan_fallback.py- a lone R9700 adapter driven through the shippedinstall.ps1andstudio/setup.ps1scan blocks under pwsh, which is @aelfwyne's exact hostshape.
tests/studio/test_amd_name_arch_r9700.ps1(new) - evaluates the shipped$nameArchTablerowsunder PowerShell's own regex engine rather than Python's, with a "was found" guard so a renamed
or truncated table fails loudly instead of passing vacuously.
Wired into
cross-platform-parity-ci.ymlnext to the otherpwshinstaller tests, so it runson ubuntu and windows rather than only by hand.
Suites run serially:
Thanks to @aelfwyne for the report, and to the reporters on #7624 and #7307 for the hardware
confirmation this mapping rests on.