File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ def CDNA2OrLater():
5151def 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():
5962def 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
You can’t perform that action at this time.
0 commit comments