Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Exo 2: Growing a Scheduling Language

Published 11 Nov 2024 in cs.PL | (2411.07211v4)

Abstract: User-schedulable languages (USLs) help programmers productively optimize programs by providing safe means of transforming them. Current USLs are designed to give programmers exactly the control they want, while automating all other concerns. However, there is no universal answer for what performance-conscious programmers want to control, how they want to control it, and what they want to automate, even in relatively narrow domains. We claim that USLs should, instead, be designed to grow. We present Exo 2, a scheduling language that enables users to define new scheduling operations externally to the compiler. By composing a set of trusted, fine-grained primitives, users can safely write their own scheduling library to build up desired automation. We identify actions (ways of modifying code), inspection (ways of interrogating code), and references (ways of pointing to code) as essential for any user-extensible USL. We fuse these ideas into a new mechanism called Cursors that enables the creation of scheduling libraries in user code. We demonstrate libraries that amortize scheduling effort across more than 80 high-performance kernels, reducing total scheduling code by an order of magnitude and delivering performance competitive with state-of-the-art implementations on three different platforms.

Citations (19)

Summary

  • 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.

Analyzing Exo 2: A Growable Scheduling Language for High-Performance Computing

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We're still in the process of identifying open problems mentioned in this paper. Please check back in a few minutes.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Tweets

Sign up for free to view the 5 tweets with 120 likes about this paper.

HackerNews

  1. Exo 2: Growing a Scheduling Language (4 points, 0 comments) 

Reddit

  1. Exo 2: Growing a Scheduling Language (16 points, 3 comments)