[Kernel][ROCm] Native W4A16 kernel for AMD RDNA3 (gfx1100) — fp16 + bf16 (#41394)

Signed-off-by: JartX <sagformas@epdcenter.es>
This commit is contained in:
JartX
2026-05-29 11:04:40 +00:00
committed by GitHub
parent 60a7a2214f
commit 0cff0741ff
13 changed files with 3846 additions and 0 deletions
+15
View File
@@ -190,6 +190,9 @@ def _get_gcn_arch() -> str:
_GCN_ARCH = _get_gcn_arch()
_ON_GFX1X = any(arch in _GCN_ARCH for arch in ["gfx11", "gfx12"])
_ON_GFX11 = "gfx11" in _GCN_ARCH
_ON_GFX1100 = "gfx1100" in _GCN_ARCH
_ON_GFX1151 = "gfx1151" in _GCN_ARCH
_ON_GFX12X = any(arch in _GCN_ARCH for arch in ["gfx12"])
_ON_MI3XX = any(arch in _GCN_ARCH for arch in ["gfx942", "gfx950"])
_ON_GFX9 = any(arch in _GCN_ARCH for arch in ["gfx90a", "gfx942", "gfx950"])
@@ -273,6 +276,18 @@ def on_gfx1x() -> bool:
return _ON_GFX1X
def on_gfx11() -> bool:
return _ON_GFX11
def on_gfx1100() -> bool:
return _ON_GFX1100
def on_gfx1151() -> bool:
return _ON_GFX1151
def on_gfx12x() -> bool:
return _ON_GFX12X