[ROCm][V0][Attention] Revert to the previous FA triton kernel (#18226)

Signed-off-by: Gregory Shtrasberg <Gregory.Shtrasberg@amd.com>
This commit is contained in:
Gregory Shtrasberg
2025-05-29 12:13:18 -04:00
committed by GitHub
parent da4b69d0b4
commit 1b7cfd5a36
3 changed files with 692 additions and 1081 deletions
+6
View File
@@ -98,6 +98,12 @@ def with_amdsmi_context(fn):
return wrapper
@cache
def on_gfx1x() -> bool:
GPU_ARCH = torch.cuda.get_device_properties("cuda").gcnArchName
return any(arch in GPU_ARCH for arch in ["gfx11", "gfx12"])
@cache
def on_mi250_mi300() -> bool:
GPU_ARCH = torch.cuda.get_device_properties("cuda").gcnArchName