Skip to content

Detect the Radeon AI PRO R9700 (gfx1201): it carries neither 9070 nor 9080, so name inference found nothing - #8573

Merged
danielhanchen merged 3 commits into
mainfrom
r9700-gfx1201
Aug 13, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
r9700-gfx1201

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

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 the
UI 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:

@{ P = "9070|9080"; A = "gfx1201" }     # install.ps1 / studio/setup.ps1
*9070*|*9080*) echo gfx1201 ;;           # install.sh (twice), studio/setup.sh
(r"9070|9080", "gfx1201"),               # studio/install_python_stack.py

The workstation Navi 48 is branded Radeon AI PRO R9700. That string contains neither 9070
nor 9080, so a first-match-wins walk of the table falls off the end, no arch is inferred, and
every 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:

"AMD Radeon AI PRO R9700"  ->  (no match)
"AMD Radeon RX 9070 XT"    ->  gfx1201

Why the other R9700 reporters never hit it

Name inference is the last resort. It only runs when rocminfo / amd-smi / hipinfo fail to
report a gcnArchName. Both hardware reporters who confirmed this card as gfx1201 had a working
HIP SDK or amd-smi, so the probe answered first and the table was never consulted:

Both back it with real rocminfo / torch output, which is where the gfx1201 mapping in this PR
comes 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:

File Site
install.ps1 $nameArchTable, gfx1201 row
install.sh _infer_amd_gfx_arch_from_gpu_name()
install.sh case "$_gpu_disp_mkt" (detection banner and the UNSLOTH_ROCM_GFX_ARCH tip)
studio/setup.ps1 $nameArchTable, gfx1201 row
studio/setup.sh case "$_setup_mkt"
studio/install_python_stack.py _WIN_GPU_NAME_ARCH_TABLE

The token is R9700, not a bare 9700. ATI shipped a Radeon 9700 PRO in 2002, and a loose token
would match it and hand a 24-year-old card RDNA 4 wheels. R9700 matches every spelling of the
real adapter (AMD Radeon AI PRO R9700, AMD Radeon(TM) AI PRO R9700, with or without a capacity
suffix) 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

  • Placement is asserted, not just resolution: R9700 has to sit on the gfx1201 arm, and on no
    other arm, in both .ps1 copies.
  • Ordering and false-match sweep run through the real engines, not by eye: the shell arms through
    an actual case evaluation, the PowerShell rows through PowerShell's own -match. Every name
    the 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 XT and
    AMD Instinct MI300X all still match nothing.
  • Every new assertion was checked against its own mutant: each of the six sites was reverted one
    at a time and the covering suite fails; loosening R9700 to 9700 fails all four suites. No
    assertion survived its mutant.

Tests extended:

  • tests/studio/install/test_rocm_arch_table_parity.py - the R9700 joins _GPU_NAME_LEAF_CASES
    and _AMD_DOCUMENTED_ARCH, so all six copies plus the spoof fixture are held to the same
    answer and to the right wheel index leaf, and the cross-file contract between
    _WIN_GPU_NAME_ARCH_TABLE, _GFX_TO_AMD_INDEX_ARCH and the .ps1 tables 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 shipped
    install.ps1 and studio/setup.ps1 scan blocks under pwsh, which is @aelfwyne's exact host
    shape.
  • tests/studio/test_amd_name_arch_r9700.ps1 (new) - evaluates the shipped $nameArchTable rows
    under 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.yml next to the other pwsh installer tests, so it runs
    on ubuntu and windows rather than only by hand.

Suites run serially:

tests/studio/install/test_rocm_arch_table_parity.py    86 passed
tests/studio/install/test_rocm_support.py             488 passed, 1 skipped
tests/test_windows_amd_gpu_scan_fallback.py            82 passed
tests/python/test_cross_platform_parity.py             76 passed
tests/studio/install/test_rocm_rdna_routing.py         23 passed
tests/studio/install/test_rocm_gfx_spoof_7331.py       72 passed
pwsh tests/studio/test_amd_name_arch_r9700.ps1        all checks passed

Thanks to @aelfwyne for the report, and to the reporters on #7624 and #7307 for the hardware
confirmation this mapping rests on.

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 8427e72b76

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 386c9aee8c

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member Author

CI status, since the red here is not this PR.

The two install legs went green on rerun. win windows-latest / winget=masked failed because the release CDN reset mid-download of the llama.cpp prebuilt (Remote end closed connection without response), so the installer fell back to a source build on the one leg where git is deliberately masked, and setup exited 1. The preceding 35.4 MiB download in the same step ran at 184.6 MiB/s, so it was a per-connection reset rather than an outage. The runner also reported no AMD GPU and selected windows-x64-cpu, so none of the six name tables this PR touches is ever consulted on that host. mac macos-15-intel is experimental: true with continue-on-error and cannot block.

The four remaining reds are all failures on main that this branch inherits:

test fix
test_desktop_auth.py::test_health_response_reports_desktop_capability_fields #8590
test_external_provider_usage_chunk.py::test_other_providers_do_not_get_the_continuation_flags #8608
test_gemini_provider.py::test_openai_responses_forced_function_tool_choice_drops_hosted_tools #8608
test_warm_window_review_fixes.py::test_the_warm_epoch_is_retired_before_any_shutdown_await already fixed on main; this job predates it

So this one goes green once those merge and it reruns against current main. Nothing to change here.

@danielhanchen
danielhanchen merged commit 8502cf8 into main Aug 13, 2026
104 of 114 checks passed
@danielhanchen
danielhanchen deleted the r9700-gfx1201 branch August 13, 2026 00:35
@danielhanchen

Copy link
Copy Markdown
Member Author

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 origin/main with no PR applied:

3 failed, 3 passed in 9.92s
tests/test_desktop_auth.py::test_health_response_reports_desktop_capability_fields
  ImportError: cannot import name 'openai_codex_auth_router' from 'routes' (unknown location)
tests/test_external_provider_usage_chunk.py::test_other_providers_do_not_get_the_continuation_flags[openai-...]
  ValueError: Responses event type is missing
tests/test_gemini_provider.py::test_openai_responses_forced_function_tool_choice_drops_hosted_tools
  ValueError: Responses event type is missing

with event = {}, event_name = '' at core/inference/openai_responses_shared.py:93. #8590 fixes the first, #8608 the other two; both are open. This PR is blocked behind those merges.

mac macos-15-intel / mask / file is red on main and does not block. The installer correctly declines torch on an Intel Mac ("PyTorch is unavailable for this platform (dropped Jan 2024)"), and then clean-machine-install-ci.yml:358 asserts import torch anyway, because that matrix row passes empty flags instead of --no-torch. The row is experimental: true under continue-on-error, so the workflow still concludes success; gh pr checks lists it as fail regardless. Byte-identical on a clean main run. That one wants a separate main-side CI fix.

One extra Backend failure on this PR only, and it is also main's, already fixed:

tests/test_warm_window_review_fixes.py::test_the_warm_epoch_is_retired_before_any_shutdown_await
assert 781 < 771

That assertion is pure AST analysis of studio/backend/main.py::lifespan, and this PR does not touch that file. Replaying it across main:

main commit retire / first await result
3c590a536^ 781 / 771 FAIL
3c590a536 746 / 752 PASS
origin/main PASS

3c590a536 is "Studio: defer optional GPU startup work (#8564)", merged 17:22Z. This PR's run was created before that, so it ran against a main that still had the bug. A re-run picks up the fix.

danielhanchen pushed a commit that referenced this pull request Aug 13, 2026
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.
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