Skip to content

Commit 5d647c3

Browse files
committed
Skipped sdpa_2 test in test_aot_inductor
1 parent 2e48656 commit 5d647c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/inductor/test_aot_inductor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
IS_MACOS,
4545
IS_WINDOWS,
4646
skipIfRocm,
47+
skipIfRocmArch,
4748
skipIfXpu,
4849
TEST_WITH_ROCM,
50+
NAVI32_ARCH,
4951
)
5052
from torch.testing._internal.inductor_utils import GPU_TYPE
5153
from torch.testing._internal.logging_utils import LoggingTestCase, make_logging_test
@@ -925,6 +927,8 @@ def forward(self, q, k, v):
925927
)
926928
self.check_model(Model(), example_inputs)
927929

930+
# Eager mode produces incorrect tensor values for navi32 during this test
931+
@skipIfRocmArch(NAVI32_ARCH)
928932
@unittest.skipIf(IS_FBCODE, "Not yet runnable in fbcode")
929933
@unittest.skipIf(not SM80OrLater, "bfloat16 only supported in sm80+")
930934
def test_sdpa_2(self):

torch/testing/_internal/common_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,8 @@ def printErrors(self) -> None:
13601360
IS_ARM64 = platform.machine() in ('arm64', 'aarch64')
13611361
IS_S390X = platform.machine() == "s390x"
13621362

1363+
NAVI32_ARCH = "gfx1101"
1364+
13631365
def is_navi_arch():
13641366
if torch.cuda.is_available():
13651367
prop = torch.cuda.get_device_properties(0)

0 commit comments

Comments
 (0)