Skip to content

Commit 5c54a45

Browse files
xinyazhangjithunnair-amd
authored andcommitted
Enable FA/ME UT on gfx950 for ROCM >= 6.5
1 parent 793db46 commit 5c54a45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

torch/testing/_internal/common_cuda.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def CDNA2OrLater():
5151
def evaluate_platform_supports_flash_attention():
5252
if TEST_WITH_ROCM:
5353
arch_list = ["gfx90a", "gfx942", "gfx1100"]
54+
version = _get_torch_rocm_version()
55+
if version >= (6, 5):
56+
arch_list += ["gfx950"]
5457
return evaluate_gfx_arch_within(arch_list)
5558
if TEST_CUDA:
5659
return not IS_WINDOWS and SM80OrLater
@@ -59,6 +62,9 @@ def evaluate_platform_supports_flash_attention():
5962
def evaluate_platform_supports_efficient_attention():
6063
if TEST_WITH_ROCM:
6164
arch_list = ["gfx90a", "gfx942", "gfx1100"]
65+
version = _get_torch_rocm_version()
66+
if version >= (6, 5):
67+
arch_list += ["gfx950"]
6268
return evaluate_gfx_arch_within(arch_list)
6369
if TEST_CUDA:
6470
return True

0 commit comments

Comments
 (0)