Skip to content
Open
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
7 changes: 5 additions & 2 deletions vllm/model_executor/layers/fla/ops/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,13 @@ def _check_platform() -> Literal["nvidia", "amd", "intel", "musa"]:
)
use_cuda_graph = is_nvidia and os.environ.get("FLA_USE_CUDA_GRAPH", "0") == "1"
is_gather_supported = hasattr(triton.language, "gather")
is_tma_supported = (is_nvidia and torch.cuda.get_device_capability(0)[0] >= 9) and (

is_tma_supported = (
is_nvidia and 9 <= torch.cuda.get_device_capability(0)[0] < 12
) and (
hasattr(triton.language, "_experimental_make_tensor_descriptor")
or hasattr(triton.language, "make_tensor_descriptor")
)
) # Upper bound < 12 disables TMA on Blackwell (sm_12x): Triton autotuner OOM


def get_all_max_shared_mem():
Expand Down