[ROCm] MI300A compile targets deprecation (#13560)

This commit is contained in:
Gregory Shtrasberg
2025-02-19 23:05:00 -08:00
committed by GitHub
parent 041e294716
commit 0023cd2b9d
4 changed files with 4 additions and 7 deletions
+1 -2
View File
@@ -25,8 +25,7 @@ logger = init_logger(__name__)
_PARTITION_SIZE_ROCM = 512
_GPU_ARCH = torch.cuda.get_device_properties("cuda").gcnArchName
_ON_NAVI = "gfx1" in _GPU_ARCH
_ON_MI250_MI300 = any(arch in _GPU_ARCH
for arch in ["gfx90a", "gfx940", "gfx941", "gfx942"])
_ON_MI250_MI300 = any(arch in _GPU_ARCH for arch in ["gfx90a", "gfx942"])
class ROCmFlashAttentionBackend(AttentionBackend):