gemini-2.5-pro| input-price: 1.25 output-price: 10 max-context-length: 200_000 (cost: $0.06) Β· Anfrage: 2025-09-15T07:22:18.628500

Generated by rs-summarizer Version unbekannt

Abstract:

This video features two presentations from a Carnegie Mellon University research group on their "mega kernel" compiler project. The first talk introduces Mirage, a multi-level super-optimizer for GPU tensor programs. Mirage addresses the limitations of traditional compilers by performing a holistic optimization across the GPU's memory hierarchy. It uses a multi-level graph representation (M-Graph) and employs an exhaustive search strategy, pruned by a novel "abstract expression" technique and an automated theorem prover, to discover optimal computational graphs. These graphs can combine algebraic transformations, scheduling changes, and custom kernel fusion. Generated candidates are verified for correctness using a probabilistic method.

The second talk presents MPK (Mirage Persistent Kernel), a follow-up project that uses Mirage to compile an entire large language model (LLM) into a single, persistent "mega kernel." This approach overcomes the drawbacks of the standard kernel-per-layer execution model, such as synchronization barriers and poor resource utilization. MPK uses a fine-grained task graph to manage dependencies and implements a dynamic, task-based runtime system within the GPU kernel itself, with dedicated scheduler and worker SMs. This enables advanced inter-layer pipelining, overlapping of computation and communication, and efficient handling of dynamic workloads, pushing LLM serving performance close to theoretical hardware limits.

Mirage and MPK: A Super-Optimizer for Tensor Programs and Mega-Kernel LLM Compilation

Summary Rating: No ratings yet
Article Rating: No ratings yet

Source