Backend Hardware Optimization Guides#

On heterogeneous AI accelerators, the optimal launch configurations and tiling sizes for Triton kernels heavily depend on the physical hardware architecture and compiler backend. When optimizing for a specific hardware target, we recommend thoroughly understanding its memory hierarchy and instruction constraints before exploring tiling parameters via the FlagGems tuning workflow.

  • Huawei Ascend NPU Optimization: AI Core memory and compute paths (Cube vs. Vector), on-chip buffer budgeting (L0/L1/UB), Triton-Ascend compiler parameters, and common bottleneck troubleshooting.
  • Hygon DCU Optimization: DCU/HIP memory hierarchy, Wavefront occupancy limits, DUMMA hardware matrix instruction shapes, and grouped scheduling for L2 reuse.

The configurations and tuning suggestions in these guides represent empirical baselines. Always verify both numerical precision and end-to-end latency on the physical target device with your installed compiler toolchain before adopting them in production.