[PR #4153] [Other] setup: recognize the Instinct MI50 / MI60 / Radeon VII (gfx906) as a supported card #4925

Open
opened 2026-11-07 16:31:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4153
Author: @ken2425pm
Created: 10/25/2026
Status: 🔄 Open

Base: main ← Head: setup-gfx906


📝 Commits (1)

  • 6002eec setup: recognize the Instinct MI50 / MI60 / Radeon VII (gfx906) as a supported card

📊 Changes

2 files changed (+19 additions, -3 deletions)

View changed files

📝 setup.py (+13 -3)
📝 tools/test_setup_amd.py (+6 -0)

📄 Description

Replaces the same-numbered closed PR (0.2.0-beta tracker reset; its /reopen check passed but GitHub would not reopen the closed PR after the branch update - new PR per the check bot's guidance).

Problem and result: on a gfx906 box, setup says "not supported", and pushed past that the ROCm wheel lookup dies in a KeyError (AMD's wheels hold 7.x families only; gfx906 runs from a source build on a system ROCm 6.x). After the change setup lists the card, and the wheel path fails with the build instruction instead of the KeyError.

Related discussion: #2883 (gfx906 community validation — reopened by the bot with a maintainer pick-up promised); the closed #3080 of the same content (0.2.0-beta tracker reset).

Approach: AMD_ARCHS / AMD_NAMES / AMD_CARDS gain gfx906, pointing at the gfx906 source-build section of docs/AMD_HIP.md; rocm_root() fails for archs without a wheel index instead of raising KeyError. No builder branch — setup does not drive a gfx906 build, it names the path. No other card's route changes; the wheel-driven default path is untouched.

Validation:

  • Passed: python tools/test_setup_amd.py on this checkout (v0.2.6): 51 of 52 tests pass, including the new no-wheels exception cases (gfx906 is the one supported arch deliberately absent from ROCM_INDEXES, and amd_problem stays quiet for it).
  • Failed: test_setup_points_windows_gfx12_to_the_entry — pre-existing: it also fails on the pristine v0.2.6 tag (Windows AMD: the driver resets is absent from docs/TROUBLESHOOTING.md there), untouched by this change.
  • Not run: a live setup run against the hardware with this patch (the card on this box was set up by hand, per docs/ROCm_6_3_3.md).

Limits: MI50 is validated on hardware (2x, system ROCm 6.3.3, the docs PR); MI60 is recognized by arch only, not run here.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4153 **Author:** [@ken2425pm](https://github.com/ken2425pm) **Created:** 10/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `setup-gfx906` --- ### 📝 Commits (1) - [`6002eec`](https://github.com/Niko1221/Strata/commit/6002eecfc5002a424ba34a1662870daec3293b2e) setup: recognize the Instinct MI50 / MI60 / Radeon VII (gfx906) as a supported card ### 📊 Changes **2 files changed** (+19 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+13 -3) 📝 `tools/test_setup_amd.py` (+6 -0) </details> ### 📄 Description Replaces the same-numbered closed PR (0.2.0-beta tracker reset; its /reopen check passed but GitHub would not reopen the closed PR after the branch update - new PR per the check bot's guidance). Problem and result: on a gfx906 box, setup says "not supported", and pushed past that the ROCm wheel lookup dies in a KeyError (AMD's wheels hold 7.x families only; gfx906 runs from a source build on a system ROCm 6.x). After the change setup lists the card, and the wheel path fails with the build instruction instead of the KeyError. Related discussion: #2883 (gfx906 community validation — reopened by the bot with a maintainer pick-up promised); the closed #3080 of the same content (0.2.0-beta tracker reset). Approach: `AMD_ARCHS` / `AMD_NAMES` / `AMD_CARDS` gain gfx906, pointing at the gfx906 source-build section of `docs/AMD_HIP.md`; `rocm_root()` fails for archs without a wheel index instead of raising KeyError. No builder branch — setup does not drive a gfx906 build, it names the path. No other card's route changes; the wheel-driven default path is untouched. Validation: - Passed: `python tools/test_setup_amd.py` on this checkout (v0.2.6): 51 of 52 tests pass, including the new no-wheels exception cases (`gfx906` is the one supported arch deliberately absent from `ROCM_INDEXES`, and `amd_problem` stays quiet for it). - Failed: `test_setup_points_windows_gfx12_to_the_entry` — pre-existing: it also fails on the pristine v0.2.6 tag (`Windows AMD: the driver resets` is absent from `docs/TROUBLESHOOTING.md` there), untouched by this change. - Not run: a live setup run against the hardware with this patch (the card on this box was set up by hand, per `docs/ROCm_6_3_3.md`). Limits: MI50 is validated on hardware (2x, system ROCm 6.3.3, the docs PR); MI60 is recognized by arch only, not run here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4925
No description provided.