[Kernel] Accelerate solve_tril with TMA (#26746)

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
This commit is contained in:
Jiangyun Zhu
2025-10-20 05:39:02 +00:00
committed by GitHub
parent b63f2143f8
commit 9fce7bee74
3 changed files with 414 additions and 303 deletions
@@ -150,6 +150,11 @@ is_nvidia_hopper = is_nvidia and (
or torch.cuda.get_device_capability()[0] >= 9
)
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 (
hasattr(triton.language, "_experimental_make_tensor_descriptor")
or hasattr(triton.language, "make_tensor_descriptor")
)
def get_all_max_shared_mem():