- The paper introduces Exo 2’s growable approach that leverages 46 composable scheduling primitives to enhance scheduling flexibility.
- It presents Cursors, a novel mechanism for stable code navigation that simplifies the composition of complex scheduling operations.
- The study demonstrates reduced scheduling code complexity and competitive performance on diverse hardware including AVX2, AVX512, and Gemmini.
Exo 2 represents a significant advancement in the development of user-schedulable languages (USLs), which are designed to offer programmers explicit control over the scheduling of computations while automating less critical concerns. This paper introduces Exo 2, which addresses the limitations of existing USLs by proposing a design that allows the language to grow through user-defined scheduling operations. Unlike previous USLs, Exo 2 enables performance engineers to build and reuse scheduling libraries external to the compiler, thus scaling efficiently across diverse kernels and architectures.
The crux of Exo 2's design is its modular architecture that emphasizes the composition of fine-grained, trusted scheduling primitives. This approach allows for safer and more flexible construction of scheduling abstractions compared to conventional methods. The language introduces a novel mechanism, Cursors, and categorizes the fundamental components of a USL as actions, inspection, and references.
Core Contributions
- Composable Scheduling Primitives: Exo 2 is founded on the premise that fine-grained primitives should form the core of a growable scheduling language. The research identifies 46 primitives that can be composed to create sophisticated scheduling operations. These primitives are essential for enabling both low-level control and high-level automation.
- Cursors for Referencing and Navigation: Cursors provide a stable mechanism for referring to and navigating object code, differing from the nominal references of existing USLs. This innovation allows Exo 2 to maintain references consistently across transformations, enabling users to perform complex scheduling operations without the extensive manual adjustments typical in other systems.
- Performance and Code Efficiency: Exo 2 demonstrates an impressive capability to reduce scheduling code complexity and improve performance. The language supports more than 80 high-performance kernels, achieving competitive results against state-of-the-art implementations such as MKL, OpenBLAS, and BLIS across various hardware platforms, including AVX2, AVX512, and Gemmini.
- Applicability Across Domains: The flexibility of Exo 2 is validated through its application to a variety of domains, notably linear algebra, including BLAS levels 1 and 2. The ability to generalize scheduling strategies across different kernels and architectures showcases the potential of Exo 2 to serve as a universal scheduling solution.
Implications for Future Research
Exo 2 sets the stage for further exploration into modular and extensible language designs that prioritize user-defined abstractions. By proving the viability of an externally growable scheduling language, this work encourages the development of more targeted scheduling libraries, which could enhance productivity and performance in diverse computing environments. Future research may focus on expanding the set of primitives or integrating machine learning techniques to automate the selection and composition of scheduling strategies.
Conclusion
Exo 2 embodies a forward-thinking approach to USLs, combining safety, flexibility, and power through its unique architecture. By empowering users to compose new scheduling operations and abstract over common optimizations, Exo 2 not only meets current performance engineering demands but also extends the boundaries of what is achievable with user-schedulable languages. This work holds promise for reshaping how performance-critical applications are optimized in heterogeneous computing environments.