xDSL-CCPP: An alternative code generator for atmospheric modelling
Nick Brown, John Dennis
Key points
From the paper's conclusion- While the code generator initially provided a simple transformation capability, the demands of state-of-the-art atmospheric models have resulted in significant increases in its complexity.
Abstract
The Common Community Physics Package (CCPP) is a framework designed to simplify the exchange of physics packages between state-of-the-art atmospheric models. A core software component of CCPP is a code generator: a bespoke Python-based application that uses regular expressions to transform an input specification into Fortran source code. While the code generator initially provided a simple transformation capability, the demands of state-of-the-art atmospheric models have resulted in significant increases in its complexity. Furthermore, ongoing code modernisation efforts to enable GPU-based computing have placed additional demands on the code generator for which it was never designed. Domain Specific Languages (DSLs) have proven to be highly effective in High Performance Computing (HPC), offering the ability to simplify code modernisation efforts. However, traditionally the effort and specialist skills required in the development of a DSL have been a blocker to adoption. In recent years, however, there have been great advances in compiler technologies, and frameworks such as MLIR and xDSL have the potential to greatly lower this barrier to entry. In this paper, we present xDSL-CCPP, a new application-specific code generator based upon the latest MLIR and xDSL compiler technologies, for CCPP. Demonstrating a reduction in bespoke tooling code of around three times, from approximately 15,000 LoC to 5,000 LoC, we highlight the opportunities provided by these compiler frameworks and demonstrate how they significantly lower the barrier to development of HPC application-specific DSLs whilst maintaining application performance and promoting flexibility.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- AutoC2V: Synthesis-Guided LLM Training for QoR-Optimized C++-to-Verilog GenerationarXiv · 2026
- DSL-Bench: Evaluating and Explaining LLM Code Generation Across Domain-Specific LanguagesarXiv · 2026
- Evaluating LLMs for Translating Legacy Fortran Atmospheric Physics to GPU-Accelerated JAXarXiv · 2026
- From Loop Nests to Silicon: Mapping AI Workloads onto AMD NPUs with MLIR-AIRACM Transactions on Reconfigurable Technology and Systems · 2026
- Application-Defined Abstractions to Separate Numerical Intent from Computation OrchestrationarXiv · 2026
- A transformer-based approach for source code classification for heterogeneous device mappingEngineering Applications of Artificial Intelligence · 2025