Skip to content

feat(rocr,clr): Add gfx1170, gfx1171 target support - #11977

Merged
litvaOo merged 10 commits into
developfrom
users/agunashe/gfx117X
Oct 7, 2026
Merged

litvaOo merged 10 commits into
developfrom
users/agunashe/gfx117X

Conversation

@agunashe

@agunashe agunashe commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Port gfx1170/gfx1171 (ISA 11.7.x) enablement onto develop for ROCr and CLR: ISA/ELF IDs, blit objects, addrlib gfx117x family, OCP FP8, gfx11-7-generic fatbin/comgr mapping, and PAL AsicRevision::Gfx1170/Gfx1171 device tables.

kfdtest exclude filters for gfx1170/gfx1171/gfx1172 are in #12795.

Co-authored-by: Sang, Tao Tao.Sang@amd.com
Co-authored-by: McRae, Geoffrey Geoffrey.McRae@amd.com
Co-authored-by: Li, Todd tiantuo Toddtiantuo.Li@amd.com
Co-authored-by: Sokolovic, Stefan Stefan.Sokolovic2@amd.com
Co-authored-by: Josic, Slobodan Slobodan.Josic@amd.com
Co-authored-by: jungx098 jungx098@gmail.com

Technical Details

Enables gfx1170/gfx1171 support on rocm-systems/Rock

Issue Tracking

JIRA ID : AIRUNTIME-2024
JIRA ID : ROCM-29293

Test Plan

Submission Checklist

@therock-pr-bot

therock-pr-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ⚠️ Warning Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: projects/clr/hipamd/include/hip/amd_detail/amd_hip_fp8.h, projects/clr/hipamd/src/hip_comgr_helper.cpp, projects/clr/hipamd/src/hip_fatbin.cpp, projects/clr/rocclr/device/device.cpp, projects/clr/rocclr/device/pal/paldevice.cpp (+42 more); no test file found
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@agunashe agunashe changed the title Users/agunashe/gfx117 x feat(rocr,clr): Add gfx1170, gfx1171 target support- #11715 Sep 21, 2026
@agunashe agunashe changed the title feat(rocr,clr): Add gfx1170, gfx1171 target support- #11715 feat(rocr,clr): Add gfx1170, gfx1171 target support Sep 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The new PAL references use undeclared AsicRevision values, and the exported HSA ELF header is not synchronized with the new IDs.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 High severity · 1 Medium severity

Open (3)
What changed in this PR

Adds gfx1170/gfx1171 ISA 11.7 support across ROCr, CLR, HSAIL, HIP, PAL, blit kernels, and generic-target fallback handling.

Changes:

  • Adds ELF/ISA identifiers and generic mappings.
  • Adds gfx117x blit, addrlib, test, and KFD filter support.
  • Adds CLR PAL device registration and OCP FP8 support.
File Description
shared/​kpack/​docs/​multi_arch_packaging_with_kpack.md Documents gfx117 generic fallback.
shared/​amdgpu-windows-interop/​sc/​HSAIL/​include/​amd_hsa_elf.h Adds Windows ELF IDs.
shared/​amdgpu-windows-interop/​sc/​HSAIL/​ext/​loader/​loaders.hpp Declares new ISA handles.
shared/​amdgpu-windows-interop/​sc/​HSAIL/​ext/​loader/​loaders.cpp Initializes and maps handles.
shared/​amdgpu-windows-interop/​sc/​HSAIL/​ext/​libamdhsacode/​amd_hsa_code.cpp Decodes new machine types.
shared/​amdgpu-windows-interop/​pal/​inc/​core/​palPipelineAbi.h Adds machine-type enums.
projects/​rocr-runtime/​runtime/​hsa-runtime/​libamdhsacode/​amd_hsa_code.cpp Adds ROCr machine decoding.
projects/​rocr-runtime/​runtime/​hsa-runtime/​inc/​amd_hsa_elf.h Adds ROCr ELF IDs.
projects/​rocr-runtime/​runtime/​hsa-runtime/​image/​blit_src/​CMakeLists.txt Builds gfx117 blit kernels.
projects/​rocr-runtime/​runtime/​hsa-runtime/​image/​blit_kernel.cpp Selects gfx117 blit objects.
projects/​rocr-runtime/​runtime/​hsa-runtime/​image/​addrlib/​src/​gfx11/​gfx11addrlib.cpp Handles gfx117 tiling.
projects/​rocr-runtime/​runtime/​hsa-runtime/​image/​addrlib/​src/​core/​addrlib.cpp Routes gfx117 to gfx11 addrlib.
projects/​rocr-runtime/​runtime/​hsa-runtime/​image/​addrlib/​src/​amdgpu_asic_addr.h Defines gfx117 family ID.
projects/​rocr-runtime/​runtime/​hsa-runtime/​core/​runtime/​isa.cpp Registers gfx117 ISAs.
projects/​rocr-runtime/​rocrtst/​suites/​test_common/​CMakeLists.txt Adds gfx117 test targets.
projects/​rocr-runtime/​libhsakmt/​tests/​kfdtest/​scripts/​kfdtest.exclude Adds gfx117 filters.
projects/​hip-tests/​samples/​0_Intro/​generic_target/​saxpy.cpp Documents the new generic target.
projects/​hip-tests/​catch/​unit/​module/​CMakeLists.txt Tests gfx117 generic compilation.
projects/​hip-tests/​catch/​unit/​compiler/​CMakeLists.txt Tests gfx117 generic compilation.
projects/​hip-tests/​catch/​hipTestMain/​hip_test_features.cc Maps gfx117 to its generic target.
projects/​clr/​rocclr/​device/​pal/​palsettings.cpp Applies gfx117 PAL settings.
projects/​clr/​rocclr/​device/​pal/​paldevice.cpp Registers gfx117 PAL devices.
projects/​clr/​rocclr/​device/​device.cpp Registers gfx117 ISA metadata.
projects/​clr/​hipamd/​src/​hip_fatbin.cpp Adds fatbin generic fallback.
projects/​clr/​hipamd/​src/​hip_comgr_helper.cpp Adds Comgr generic mapping.
projects/​clr/​hipamd/​include/​hip/​amd_detail/​amd_hip_fp8.h Enables OCP FP8 for gfx117.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mangupta mangupta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI-assisted pre-review (for @mangupta)

@agunashe
agunashe force-pushed the users/agunashe/gfx117X branch from 6c10deb to 1621456 Compare September 28, 2026 22:38
@agunashe
agunashe force-pushed the users/agunashe/gfx117X branch from 1621456 to c952146 Compare October 1, 2026 15:41
@TomSang
TomSang self-requested a review October 1, 2026 16:25
@litvaOo
litvaOo force-pushed the users/agunashe/gfx117X branch from a6fe0a2 to 3c189f0 Compare October 5, 2026 08:49
@mangupta

mangupta commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🤖 AI-assisted pre-review (for @mangupta)

Re-reviewed the updated head (e33d28a4fb6f) — no new findings at or above the posting threshold.

@agunashe

agunashe commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@kentrussell , @xiaogang-chen-amd - can you please review and approve this PR please.

lttamd and others added 9 commits October 6, 2026 11:05
Recognize FAMILY_MDS (gfx1170, gfx1171) and initialize it with the
gfx11 address library.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Josic, Slobodan <Slobodan.Josic@amd.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Add the gfx11-7-generic ISA/ELF target and retarget fatbin and
comgr fallbacks for gfx1170/gfx1171.

Co-authored-by: Cursor <cursoragent@cursor.com>
Rename FAMILY_MDS to FAMILY_GFX1170 (0x9A) to match open-source Mesa
addrlib, and enable gfx1170/gfx1171.

Co-authored-by: Cursor <cursoragent@cursor.com>
This PR updates the amdgpu-windows-interop directory with the latest
changes from the static-libs branch.

**PAL Commit:** `1251ecbd`
**PAL Static Commit:** `81576c1`

Original change was pushed at 2026-10-01 15:25:31 UTC.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This PR updates the amdgpu-windows-interop directory with the latest
changes from the static-libs branch.

**PAL Commit:** `b8129e83`
**PAL Static Commit:** `b02731c`

Original change was pushed at 2026-10-05 08:59:23 UTC.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Danylo Lytovchenko <danylo.lytovchenko@amd.com>
@dayatsin-amd
dayatsin-amd force-pushed the users/agunashe/gfx117X branch from e33d28a to a7292ca Compare October 6, 2026 15:05
@dayatsin-amd

Copy link
Copy Markdown
Contributor

Dropped test(kfdtest): Add gfx1170 and gfx1171 exclude filters. Those kfdtest.exclude entries are coming in via #12795.

@agunashe
agunashe requested a review from kentrussell October 6, 2026 20:09
@agunashe

agunashe commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

@kentrussell - kfd test is moved to #12795. Can you help review and approve this please

@mangupta

mangupta commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🤖 AI-assisted pre-review (for @mangupta)

Re-reviewed the updated head (a7292ca95e42) — no new findings at or above the posting threshold.

@litvaOo

litvaOo commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

The test failures are unrelated to the contents of the PR, overriding.

@litvaOo
litvaOo merged commit 8a343ff into develop Oct 7, 2026
290 of 302 checks passed
@litvaOo
litvaOo deleted the users/agunashe/gfx117X branch October 7, 2026 15:59
@systems-assistant

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

@fjankovi fjankovi added the gfx117x-upstreaming PRs for adding gfx117x to ROCm and TheRock label Oct 9, 2026
anujshuk-amd pushed a commit that referenced this pull request Oct 12, 2026
Port gfx1170/gfx1171 (ISA 11.7.x) enablement onto develop for ROCr and
CLR: ISA/ELF IDs, blit objects, addrlib gfx117x family, OCP FP8,
gfx11-7-generic fatbin/comgr mapping, and PAL
AsicRevision::Gfx1170/Gfx1171 device tables.

kfdtest exclude filters for gfx1170/gfx1171/gfx1172 are in #12795.

Co-authored-by: Sang, Tao [Tao.Sang@amd.com](mailto:Tao.Sang@amd.com)
Co-authored-by: McRae, Geoffrey
[Geoffrey.McRae@amd.com](mailto:Geoffrey.McRae@amd.com)
Co-authored-by: Li, Todd tiantuo
[Toddtiantuo.Li@amd.com](mailto:Toddtiantuo.Li@amd.com)
Co-authored-by: Sokolovic, Stefan
[Stefan.Sokolovic2@amd.com](mailto:Stefan.Sokolovic2@amd.com)
Co-authored-by: Josic, Slobodan
[Slobodan.Josic@amd.com](mailto:Slobodan.Josic@amd.com)
Co-authored-by: jungx098 [jungx098@gmail.com](mailto:jungx098@gmail.com)


## Technical Details
Enables gfx1170/gfx1171 support on rocm-systems/Rock

## Issue Tracking
JIRA ID : AIRUNTIME-2024
JIRA ID : ROCM-29293

## Test Plan
- [x] Confirm rocminfo reports gfx1170/gfx1171 when present
- [x] Build blit kernels for gfx1170/gfx1171
- [x] HIP fatbin fallback to gfx11-7-generic
- [ ] kfdtest exclude filters: covered by #12795

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.

---------

Co-authored-by: Sang, Tao <Tao.Sang@amd.com>
Co-authored-by: jungx098 <jungx098@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Li, Todd tiantuo <Toddtiantuo.Li@amd.com>
Co-authored-by: Sokolovic, Stefan <Stefan.Sokolovic2@amd.com>
Co-authored-by: Josic, Slobodan <Slobodan.Josic@amd.com>
Co-authored-by: David Yat Sin <David.YatSin@amd.com>
Co-authored-by: systems-assistant[bot] <221163467+systems-assistant[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Danylo Lytovchenko <danylo.lytovchenko@amd.com>
arvindcheru pushed a commit that referenced this pull request Oct 15, 2026
## Motivation

`run_kfdtest.sh` fails on Medusa (gfx117x) systems with "Unsupported
platform gfx1170. Exiting". The script looks up the detected ASIC in
`kfdtest.exclude`, which has no `FILTER[gfx1170]` or `FILTER[gfx1171]`
entry. As a result, kfdtest cannot be run through the script on these
ASICs, which blocks automated KFD testing.

## Technical Details

Adds `FILTER[gfx1170]` and `FILTER[gfx1171]` to
`projects/rocr-runtime/libhsakmt/tests/kfdtest/scripts/kfdtest.exclude`,
placed after the gfx1153 entry.

Each entry uses the same blacklist as the other gfx11 entries
(`$BLACKLIST_ALL_ASICS` and `$BLACKLIST_GFX11`). This matches the
entries already present in the internal `amd-npi` branch.

The target registration for gfx1170/gfx1171 is in #11977. gfx1172 will
be handled separately.

## Issue Tracking

JIRA ID: ROCM-31373

## Test Plan

On a Medusa gfx1170 system (ROCm 10.2.0, Ubuntu 26.04), run
`run_kfdtest.sh` from `/opt/rocm-10.2.0/bin` with this `kfdtest.exclude`
supplied through `KFDTEST_SHARE_DIR`. Nothing under `/opt/rocm-10.2.0`
was modified.

Before the change, the same command exits with "Unsupported platform
gfx1170. Exiting".

## Test Result

`run_kfdtest.sh` detects node 1 (gfx1170) and runs the full suite:

- 180 tests from 19 test cases ran, 180 passed, 4 disabled
- `kfdtest` return code 0

Only gfx1170 was run, since that is the available hardware. The gfx1171
entry uses the same filter as gfx1170 but was not run on hardware.

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.