Speeding up Intel Gaudi deep-learning accelerators using an MLIR-based compiler
summary
An MLIR-based fusing compiler lowers high-level graph IR to LLVM IR and feeds a clang-based TPC compiler to produce JIT kernels for Intel Gaudi, claiming ~54% average model-level speedup across three Gaudi generations and measured gains on Gaudi 2. The TPC fuser fuses elementwise, reductions and normalizations, uses loop fusion, vectorization with masked stores, controlled unroll factors, and interleaved parallelization (22% win on a triangular softmax case). The pipeline outputs device-configs, MME allocations and additional TPC binaries for the graph compiler.
AI-written summary · about
chapters (11)
- 0:00Introduction to MLIR compiler
- 1:48Intel Gaudi hardware overview
- 3:59Deep learning compilation basics
- 7:53TPC fuser JIT compiler
- 13:12Fusion and code generation
- 17:51Case study triangular softmax
- 20:06Vectorization challenges
- 22:34Unrolling correctness
- 24:41Parallelization optimization
- 26:08Fusion with triangular access
- 28:56Conclusion and Q&A
