Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions aiter/ops/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
from .opus.mla import opus_mla_decode_fwd, opus_mla_decode_mxfp8_fwd # noqa: F401

MD_NAME = "module_attention"
_PA_FWD_ASM_SUPPORTED_ARCHS = ("gfx942", "gfx950")


@_functools.cache
def pa_fwd_asm_supports_arch() -> bool:
"""Whether the paged-attention ASM backend supports the current GPU."""
return get_gfx_runtime() in _PA_FWD_ASM_SUPPORTED_ARCHS


direct_register_custom_op(
"pa_decode_gluon",
Expand Down
5 changes: 5 additions & 0 deletions aiter/ops/triton/gluon/pa_decode_gluon.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def get_cdna_version():
return -1


def pa_decode_gluon_supports_arch() -> bool:
"""Whether the Gluon paged-decode backend supports the current GPU."""
return get_cdna_version() in (3, 4)


def get_occupancy():
return 2

Expand Down
Loading