08:00
-
08:25
-
08:25
Day 2
Accelerating scientific code on AI hardware with Reactant.jl
<p>Scientific models are today limited by compute resources, forcing approximations driven by feasibility rather than theory. They consequently miss important physical processes and decision-relevant regional details. Advances in AI-driven supercomputing — specialized tensor accelerators, AI compiler stacks, and novel distributed systems — offer unprecedented computational power. Yet, scientific applications such as ocean models, often written in Fortran, C++, or Julia and built for traditional HPC, remain largely incompatible with these technologies. This gap hampers performance portability and isolates scientific computing from rapid cloud-based innovation for AI workloads.</p>
<p>In this talk we present <a href="https://github.com/EnzymeAD/Reactant.jl"><code>Reactant.jl</code></a>, a free and open-source optimising compiler framework for the Julia programming language, based on MLIR and XLA. <code>Reactant.jl</code> preserves high-level semantics (e.g. linear algebra operations), enabling aggressive cross-function, high-level optimisations, and generating efficient code for a variety of backends (CPU, GPU, TPU and more). Furthermore, <code>Reactant.jl</code> combines with <a href="https://enzyme.mit.edu/">Enzyme</a> to provide high-performance multi-backend automatic differentiation.</p>
<p>As a practical demonstration, we will show the integration of <code>Reactant.jl</code> with <a href="https://github.com/CliMA/Oceananigans.jl"><code>Oceananigans.jl</code></a>, a state-of-the-art GPU-based ocean model. We show how the model can be seamlessly retargeted to thousands of distributed TPUs, unlocking orders-of-magnitude increases in throughput. This opens a path for scientific modelling software to take full advantage of next-generation AI and cloud hardware — without rewriting the codebase or sacrificing high-level expressiveness.</p>