[Kernel][ROCm] Native W4A16 kernel for AMD RDNA3 (gfx1100) — fp16 + bf16 (#41394)
Signed-off-by: JartX <sagformas@epdcenter.es>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user