Skip to content

Commit 4aa048f

Browse files
Disable AOTriton for gfx906 and gfx908 in PyTorch builds (#3759)
This PR adds gfx906 and gfx908 to AOTRITON_UNSUPPORTED_ARCHS in the PyTorch build script. AOTriton is not currently supported on these architectures, which can lead to build failures when attempting to enable Flash Attention. Disabling it ensures PyTorch wheels build successfully for these targets. This aligns the build configuration with the current AOTriton architecture support. --------- Co-authored-by: Aravind Ravikumar <[email protected]>
1 parent b059e0c commit 4aa048f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

external-builds/pytorch/build_prod_wheels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,8 @@ def do_build_pytorch(
783783
is_pytorch_2_11_or_later = pytorch_build_version_parsed.release[:2] >= (2, 11)
784784

785785
# aotriton is not supported on certain architectures yet.
786-
# gfx101X/gfx103X: https://github.com/ROCm/TheRock/issues/1925
787-
AOTRITON_UNSUPPORTED_ARCHS = ["gfx101", "gfx103"]
786+
# gfx906/gfx908/gfx101X/gfx103X: https://github.com/ROCm/TheRock/issues/1925
787+
AOTRITON_UNSUPPORTED_ARCHS = ["gfx906", "gfx908", "gfx101", "gfx103"]
788788
# gfx1152/53: supported in aotriton 0.11.2b+ (https://github.com/ROCm/aotriton/pull/142),
789789
# which is pinned by pytorch >= 2.11. Older versions don't include it.
790790
if not is_pytorch_2_11_or_later:

0 commit comments

Comments
 (0)