Skill
triton-vs-asm
Priority: P1 (High — backend selection directly impacts inference throughput)
Motivation
AITER supports multiple backends (ASM, CK-Tile, Triton, hipBLASLt) for the same operators. Performance varies significantly by shape — ASM kernels dominate decode (M=1) while Triton/hipBLASLt may win on larger batch sizes. Currently, comparing backends requires manual benchmarking with ad-hoc scripts. A skill automates this comparison across shape lists, producing win-rate tables that feed directly into tuning CSVs.
What This Skill Should Do
- Parse shape lists: Accept shape lists from CSV files (e.g.,
inference_gemm_pretune.csv) or command-line M,N,K specifications
- Run benchmarks: Execute both Triton and ASM backends for each shape with proper warmup and timing (median of N runs)
- Compute win rates: Calculate per-backend win rate, average speedup, and identify crossover points (shapes where leadership changes)
- Generate tables: Output markdown win-rate summary table and detailed per-shape CSV with columns: M, N, K, Triton_TFLOPS, ASM_TFLOPS, Winner, Speedup
- Identify patterns: Highlight shape ranges where each backend excels (e.g., "ASM wins 95% for M<=4, Triton wins 60% for M>=64")
Acceptance Criteria
Skill
triton-vs-asmPriority: P1 (High — backend selection directly impacts inference throughput)
Motivation
AITER supports multiple backends (ASM, CK-Tile, Triton, hipBLASLt) for the same operators. Performance varies significantly by shape — ASM kernels dominate decode (M=1) while Triton/hipBLASLt may win on larger batch sizes. Currently, comparing backends requires manual benchmarking with ad-hoc scripts. A skill automates this comparison across shape lists, producing win-rate tables that feed directly into tuning CSVs.
What This Skill Should Do
inference_gemm_pretune.csv) or command-line M,N,K specificationsAcceptance Criteria