Skip to content

[ROCm] Enable gfx1250 SDPA with AOTriton 0.12.1b - #188612

Closed
xinyazhang wants to merge 2 commits into
pytorch:mainfrom
xinyazhang:xinyazhang/aotriton-0.12.1b
Closed

xinyazhang wants to merge 2 commits into
pytorch:mainfrom
xinyazhang:xinyazhang/aotriton-0.12.1b

Conversation

@xinyazhang

@xinyazhang xinyazhang commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Notable New Features:

  • Tech Preview support of gfx1250 hardware
    • For broader testing, TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1 is NOT NEEDED for gfx1250 at the moment.
    • This support tier is tracked by new function aotriton::isArchTechPreview()

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil

xinyazhang and others added 2 commits June 30, 2026 22:28
Update the prebuilt AOTriton runtime from 0.12b to 0.12.1b: bump the version
and CI commit, add the rocm7.14 manylinux/ROCm row, and refresh the runtime
tarball SHA256 hashes for all ROCm versions. The per-arch image list and its
hashes are unchanged between 0.12b and 0.12.1b.

Test Plan:

```
USE_ROCM=1 CMAKE_ONLY=1 python setup.py develop
```
Configure resolves the 0.12.1b runtime tarball for the active ROCm version
and the SHA256 verification passes.

Authored with assistance from an AI coding assistant.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
AOTriton 0.12.1b ships a prebuilt image for gfx1250, so register it: add the
amd-gfx1250 image and its SHA256 to the AOTriton image list, and add "gfx1250"
to the flash- and efficient-attention supported-arch lists so SDPA is reported
as available on gfx1250 without TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL.

Test Plan:

On a gfx1250 host:
```
python -c "from torch.testing._internal.common_cuda import PLATFORM_SUPPORTS_FLASH_ATTENTION, PLATFORM_SUPPORTS_MEM_EFF_ATTENTION; print(PLATFORM_SUPPORTS_FLASH_ATTENTION, PLATFORM_SUPPORTS_MEM_EFF_ATTENTION)"
```
reports True/True, and the AOTriton gfx1250 image downloads and passes SHA256
verification at configure time.

Authored with assistance from an AI coding assistant.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@pytorch-bot

pytorch-bot Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/188612

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 0b6978a with merge base 0f99b00 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the module: rocm AMD GPU support for Pytorch label Jun 30, 2026
@xinyazhang xinyazhang added ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 topic: not user facing topic category labels Jun 30, 2026
@xinyazhang
xinyazhang marked this pull request as ready for review July 1, 2026 03:00
@xinyazhang
xinyazhang requested review from jeffdaily and pragupta July 1, 2026 03:00
@xinyazhang xinyazhang added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 1, 2026
@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

xinyazhang added a commit to ROCm/pytorch that referenced this pull request Jul 9, 2026
Notable New Features:

* Tech Preview support of gfx1250 hardware
  + For broader testing, `TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1` is NOT NEEDED for gfx1250 at the moment.
  + This support tier is tracked by new function `aotriton::isArchTechPreview()`

Pull Request resolved: pytorch#188612
Approved by: https://github.com/jeffdaily

Co-authored-by: Claude Opus 4.8 <[email protected]>
pragupta pushed a commit to ROCm/pytorch that referenced this pull request Jul 10, 2026
Validation theRock Run:
https://github.com/ROCm/TheRock/actions/runs/29045354548

[ROCm] Bump AOTriton to 0.13b

Notable new features compared with 0.12.1b:

* Debug printing can be enabled with env var `AOTRITON_DEBUG_LEVEL`,
without re-compiling
  + We use the same logging level as of `AMD_LOG_LEVEL`
    - CAVEAT: AOTriton itself does not read `AMD_LOG_LEVEL`
  + Set `AOTRITON_DEBUG_LEVEL=5` to print everything
* **BREAKING** `.aks2` files are packed into **uncompressed** zip files
  + `chcp 65001` is not required to build on Win32 any more.
* TheRock 7.15 support

Bug Fixes:

Add `check_requires_grad_and_nested` back to
`can_use_mem_efficient_attention`, which was removed accidentally.

*Other changes are intentionally left out: they consist mainly of
internal refactoring that is not perceivable to pytorch users.*

[ROCm] Enable gfx1250 SDPA with AOTriton 0.12.1b (pytorch#188612)
    
Notable New Features:

* Tech Preview support of gfx1250 hardware
+ For broader testing, `TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1` is
NOT NEEDED for gfx1250 at the moment.
+ This support tier is tracked by new function
`aotriton::isArchTechPreview()`

[ROCm] Bump AOTriton to 0.12b (pytorch#184288)

Notable new features:

* **BREAKING** Varlen LSE tensor shape changes to (H, Total_seqlen)
* Support head_dim != head_dim_v
* Support `use_deterministic_algorithims`
* Support seqused_k in test/test_varlen_attention.py
* gfx1100 and gfx1151 promoted out of experimental
* Partial FAv3 support on gfx950

Bug Fixes:

* GQA kernel failed to read bias tensor with the right offset.

Known Issues

* gfx950's Triton kernel has problem handling hdim=16's fwd, in addition
to hdim=48/80's bwd.
* Disables gfx90a's CK SDPA support due to GPU Segfault.

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
Notable New Features:

* Tech Preview support of gfx1250 hardware
  + For broader testing, `TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1` is NOT NEEDED for gfx1250 at the moment.
  + This support tier is tracked by new function `aotriton::isArchTechPreview()`

Pull Request resolved: pytorch#188612
Approved by: https://github.com/jeffdaily

Co-authored-by: Claude Opus 4.8 <[email protected]>
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Notable New Features:

* Tech Preview support of gfx1250 hardware
  + For broader testing, `TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1` is NOT NEEDED for gfx1250 at the moment.
  + This support tier is tracked by new function `aotriton::isArchTechPreview()`

Pull Request resolved: pytorch#188612
Approved by: https://github.com/jeffdaily

Co-authored-by: Claude Opus 4.8 <[email protected]>
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 31, 2026
Validation theRock Run:
https://github.com/ROCm/TheRock/actions/runs/29045354548

[ROCm] Bump AOTriton to 0.13b

Notable new features compared with 0.12.1b:

* Debug printing can be enabled with env var `AOTRITON_DEBUG_LEVEL`,
without re-compiling
  + We use the same logging level as of `AMD_LOG_LEVEL`
    - CAVEAT: AOTriton itself does not read `AMD_LOG_LEVEL`
  + Set `AOTRITON_DEBUG_LEVEL=5` to print everything
* **BREAKING** `.aks2` files are packed into **uncompressed** zip files
  + `chcp 65001` is not required to build on Win32 any more.
* TheRock 7.15 support

Bug Fixes:

Add `check_requires_grad_and_nested` back to
`can_use_mem_efficient_attention`, which was removed accidentally.

*Other changes are intentionally left out: they consist mainly of
internal refactoring that is not perceivable to pytorch users.*

[ROCm] Enable gfx1250 SDPA with AOTriton 0.12.1b (pytorch#188612)

Notable New Features:

* Tech Preview support of gfx1250 hardware
+ For broader testing, `TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1` is
NOT NEEDED for gfx1250 at the moment.
+ This support tier is tracked by new function
`aotriton::isArchTechPreview()`

[ROCm] Bump AOTriton to 0.12b (pytorch#184288)

Notable new features:

* **BREAKING** Varlen LSE tensor shape changes to (H, Total_seqlen)
* Support head_dim != head_dim_v
* Support `use_deterministic_algorithims`
* Support seqused_k in test/test_varlen_attention.py
* gfx1100 and gfx1151 promoted out of experimental
* Partial FAv3 support on gfx950

Bug Fixes:

* GQA kernel failed to read bias tensor with the right offset.

Known Issues

* gfx950's Triton kernel has problem handling hdim=16's fwd, in addition
to hdim=48/80's bwd.
* Disables gfx90a's CK SDPA support due to GPU Segfault.

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
(cherry picked from commit 10d8e1d)
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 31, 2026
Validation theRock Run:
https://github.com/ROCm/TheRock/actions/runs/29045354548

[ROCm] Bump AOTriton to 0.13b

Notable new features compared with 0.12.1b:

* Debug printing can be enabled with env var `AOTRITON_DEBUG_LEVEL`,
without re-compiling
  + We use the same logging level as of `AMD_LOG_LEVEL`
    - CAVEAT: AOTriton itself does not read `AMD_LOG_LEVEL`
  + Set `AOTRITON_DEBUG_LEVEL=5` to print everything
* **BREAKING** `.aks2` files are packed into **uncompressed** zip files
  + `chcp 65001` is not required to build on Win32 any more.
* TheRock 7.15 support

Bug Fixes:

Add `check_requires_grad_and_nested` back to
`can_use_mem_efficient_attention`, which was removed accidentally.

*Other changes are intentionally left out: they consist mainly of
internal refactoring that is not perceivable to pytorch users.*

[ROCm] Enable gfx1250 SDPA with AOTriton 0.12.1b (pytorch#188612)

Notable New Features:

* Tech Preview support of gfx1250 hardware
+ For broader testing, `TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1` is
NOT NEEDED for gfx1250 at the moment.
+ This support tier is tracked by new function
`aotriton::isArchTechPreview()`

[ROCm] Bump AOTriton to 0.12b (pytorch#184288)

Notable new features:

* **BREAKING** Varlen LSE tensor shape changes to (H, Total_seqlen)
* Support head_dim != head_dim_v
* Support `use_deterministic_algorithims`
* Support seqused_k in test/test_varlen_attention.py
* gfx1100 and gfx1151 promoted out of experimental
* Partial FAv3 support on gfx950

Bug Fixes:

* GQA kernel failed to read bias tensor with the right offset.

Known Issues

* gfx950's Triton kernel has problem handling hdim=16's fwd, in addition
to hdim=48/80's bwd.
* Disables gfx90a's CK SDPA support due to GPU Segfault.

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
(cherry picked from commit 10d8e1d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/trunk Trigger trunk jobs on your pull request Merged module: rocm AMD GPU support for Pytorch open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants