Skip to content

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

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

Closed
Closed
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
22 changes: 22 additions & 0 deletions test/inductor/test_aot_inductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,19 @@
from torch.testing import FileCheck
from torch.testing._internal import common_utils
from torch.testing._internal.common_cuda import (
<<<<<<< HEAD
PLATFORM_SUPPORTS_FLASH_ATTENTION,
SM80OrLater,
SM90OrLater,
=======
SM80OrLater,
SM90OrLater,
PLATFORM_SUPPORTS_FLASH_ATTENTION
)
from torch.testing._internal.common_device_type import (
_has_sufficient_memory,
skipCUDAIf,
>>>>>>> 4e4e3395e6 ([rocm6.4_internal_testing] Replaced ROCm specific skips to generalized conditions (#2100))
)
from torch.testing._internal.common_device_type import skipCUDAIf
from torch.testing._internal.common_quantization import (
Expand Down Expand Up @@ -928,9 +938,13 @@ def forward(self, q, k, v):

@unittest.skipIf(IS_FBCODE, "Not yet runnable in fbcode")
@unittest.skipIf(not SM80OrLater, "bfloat16 only supported in sm80+")
<<<<<<< HEAD
@unittest.skipIf(
not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA"
)
=======
@unittest.skipIf(not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA")
>>>>>>> 4e4e3395e6 ([rocm6.4_internal_testing] Replaced ROCm specific skips to generalized conditions (#2100))
def test_sdpa_2(self):
class Model(torch.nn.Module):
def __init__(self) -> None:
Expand Down Expand Up @@ -1038,9 +1052,13 @@ def forward(self, x, y):
self.check_model(Repro(), example_inputs)

@skipIfXpu(msg="_scaled_dot_product_flash_attention is not supported on XPU yet")
<<<<<<< HEAD
@unittest.skipIf(
not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA"
)
=======
@unittest.skipIf(not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA")
>>>>>>> 4e4e3395e6 ([rocm6.4_internal_testing] Replaced ROCm specific skips to generalized conditions (#2100))
def test_fallback_kernel_with_symexpr_output(self):
if self.device != GPU_TYPE:
raise unittest.SkipTest("requires GPU")
Expand Down Expand Up @@ -3035,9 +3053,13 @@ def grid(meta):
dynamic_shapes=dynamic_shapes,
)

<<<<<<< HEAD
@unittest.skipIf(
not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA"
)
=======
@unittest.skipIf(not PLATFORM_SUPPORTS_FLASH_ATTENTION, "Some archs don't support SDPA")
>>>>>>> 4e4e3395e6 ([rocm6.4_internal_testing] Replaced ROCm specific skips to generalized conditions (#2100))
def test_scaled_dot_product_efficient_attention(self):
if self.device != GPU_TYPE:
raise unittest.SkipTest("requires GPU")
Expand Down