Final Report on XStack: Software Synthesis for High Productivity ExaScale Computing

Armando Solar-Lezama, Univ. of California, Berkeley, Ca (United States)2016

Abstract

The goal of the project was to develop a programming model that would significantly improve productivity in the high-performance computing domain by bringing together three components: automated equivalence checking, sketch-based program synthesis, and autotuning. This report summarizes the development of MSL (Synthesis Enabled Language), a system that uses automated program synthesis to bridge the gap between high-level algorithmic intent and low-level, high-performance distributed code.

Introduction: The Productivity Gap in Exascale Computing

Writing high-performance kernels for distributed-memory supercomputers is notoriously difficult. Developers typically use MPI (Message Passing Interface), which requires manually matching "sends" and "receives," calculating complex index offsets for data partitioning, and implementing low-level optimizations. This process is error-prone, hard to debug, and results in code that is difficult to reuse. As we move toward Exascale computing, the complexity of managing millions of threads makes traditional manual optimization a significant bottleneck for scientific productivity.

Methodology: Synthesis Enabled Language (MSL)

The researchers introduced MSL, a C-like language designed for synthesis. Its approach relies on three pillars:

  1. Sketching and Generators: Instead of writing every line of code, a programmer writes a "sketch" with holes (??) or "generators"—templates that define a space of possible code fragments. The synthesizer then searches this space to find the implementation that satisfies the program's requirements.
  2. SPMD-to-Sequential Reduction: This is the core technical innovation. Synthesizing parallel code is traditionally much harder than sequential code due to the astronomical number of possible thread interleavings. MSL enforces a bulk-synchronous programming model that is "determinate by construction." This allows the system to mathematically transform a parallel synthesis problem into a sequential one, which can then be solved using the existing Sketch synthesis backend.
  3. Automated Equivalence Checking: The system verifies the synthesized high-performance implementation against a simple, sequential "reference specification." If the two don't match, the synthesizer uses the discrepancy as a counterexample to refine its search.

Evaluation and Key Results

The system was evaluated using kernels from the NAS Parallel Benchmarks (NPB), including Sparse Matrix-Vector Multiplication (SpMV), a Multi-Grid benchmark (MG), and 3D Transpose. Testing was conducted on the NERSC Hopper supercomputer, scaling from 256 up to 16,384 cores.

Performance comparison between MSL-synthesized code and hand-optimized Fortran across various benchmarks and scales.

Performance and Scalability

In all test cases, the MSL-generated code performed within ±5% of the hand-written, highly optimized Fortran reference code. Furthermore, the synthesized kernels showed strong scaling up to 16,384 cores, proving that high-level synthesis does not come at the cost of "bare-metal" performance.

Productivity Gains

The use of MSL led to significant productivity improvements. Complex routines that required over 50 lines of manual Fortran were reduced to roughly 9 lines of MSL. While synthesis for complex kernels like the MG benchmark took about 35 minutes, this is a small price to pay for a one-time optimization of a critical library.

Discussion and Future Work

A key insight of this work is that restricting the programming model to synchronous primitives (like All_to_all or reduce) eliminates the nondeterminism that makes automated synthesis computationally intractable. MSL acts as an assistant where the programmer provides the high-level strategy and the tool handles the tedious index math and communication calls.

However, some limitations remain. The solver uses bounded model checking, meaning it does not provide a formal mathematical proof of correctness for every possible input size beyond the tested bounds. Additionally, MSL is currently a research vehicle focused on computational kernels rather than a general-purpose language. Future work aims to integrate these synthesis mechanisms into mainstream languages like C++ or Scala to increase accessibility for the broader HPC community.

Summary updated

BibTeX
@misc{solarlezama2016final,
  author = {Armando Solar-Lezama and Univ. of California, Berkeley, CA (United States)},
  title = {{Final Report on XStack: Software Synthesis for High Productivity ExaScale Computing}},
  year = {2016},
  doi = {10.2172/1261628},
}

Loading related content...

Figure