Skip to content

[AUTOGENERATED] [release/2.5] [rocm6.4_internal_testing] Replaced ROCm specific skips to generalized conditions #2262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: release/2.5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/inductor/test_aot_inductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
from torch.export import Dim, export
from torch.testing import FileCheck
from torch.testing._internal import common_utils
from torch.testing._internal.common_cuda import SM80OrLater, SM90OrLater
from torch.testing._internal.common_cuda import (
SM80OrLater,
SM90OrLater,
PLATFORM_SUPPORTS_FLASH_ATTENTION
)
from torch.testing._internal.common_quantization import (
skip_if_no_torchvision,
skipIfNoFBGEMM,
Expand Down Expand Up @@ -968,6 +972,7 @@ def forward(self, q, k, v):

@unittest.skipIf(IS_FBCODE, "Not yet runnable in fbcode")
@unittest.skipIf(not SM80OrLater, "bfloat16 only supported in sm80+")
@unittest.skipIf(not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA")
def test_sdpa_2(self):
class Model(torch.nn.Module):
def __init__(self) -> None:
Expand Down Expand Up @@ -2839,6 +2844,7 @@ def grid(meta):
)

@skipIfRocm # USE_MEM_EFF_ATTENTION was not enabled for build.
@unittest.skipIf(not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA")
def test_scaled_dot_product_efficient_attention(self):
if self.device != "cuda":
raise unittest.SkipTest("requires CUDA")
Expand Down