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.
Implementing code that fully exploits modern GPU hardware is challenging. For scientific applications of sufficient complexity, this demands an in-depth understanding of hardware specifics, optimization techniques, and one or several domain-specific, idiosyncratic frameworks. We present the Einstein Engine, a modular s...
Max Morris, Lucas Timotheo Sanches, Steven R. Brandt· eScience· 0 citations
This proceeding highlights some of the design choices used during the refactoring as well as its effects on maintenance and new feature development one year after release of the refactored code base.
C. Kirsch, M. Lorenz, L. Dauner et al.· 0 citations
Monte Carlo simulations are an essential tool for data modeling and experimental design in low-background physics. These simulations typically demand a considerable effort, with each collaboration developing and maintaining its own complex Geant4 application. In this paper we present the design and validation of remage...
Recent LLM developments have seen AI-generated code become commonplace in the software development industry. Without tool access, LLMs cannot execute simulations, and their knowledge of toolkits such as Geant4 is limited. We demonstrate here, a detector simulation workflow with a Qwen3.6-27B model with Q4_K_M GGUF quan...
KROME-X is introduced, a complete rewrite of KROME in modern C++, which incorporates updated physics and provides a portable, extensible framework for astrochemical kinetics on both CPUs and GPUs for future hydrodynamic simulations.
Alessandro Lupi, T. Grassi, S. Bovino· 0 citations
The accuracy of machine-learning interatomic potentials (MLIPs) depends on high-quality training data, yet existing automation tools are often monolithic and tied to specific electronic-structure codes. ASSYST is a lightweight, pure Python library that implements the Automated Small Symmetric Structure Training method....
M. Poul, J. Neugebauer· Journal of Open Source Softw...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.