arXiv ScienceSearch

arXiv · 1511.03885

Performance analysis and Optimisation of the Met Unified Model on a Cray XC30

Abstract

The Unified Model (UM) code supports simulation of weather, climate and earth system processes. It is primarily developed by the UK Met Office, but in recent years a wider community of users and developers have grown around the code. Here we present results from the optimisation work carried out by the UK National Centre for Atmospheric Science (NCAS) for a high resolution configuration (N512 $\approx$ 25km) on the UK ARCHER supercomputer, a Cray XC-30. On ARCHER, we use Cray Performance Analysis Tools (CrayPAT) to analyse the performance of UM and then Cray Reveal to identify and parallelise serial loops using OpenMP directives. We compare performance of the optimised version at a range of scales, and with a range of optimisations, including altered MPI rank placement, and addition of OpenMP directives. It is seen that improvements in MPI configuration yield performance improvements of between 5 and 12\%, and the added OpenMP directives yield an additional 5-16\% speedup. We also identify further code optimisations which could yield yet greater improvement in performance. We note that speedup gained using addition of OpenMP directives does not result in improved performance on the IBM Power platform where much of the code has been developed. This suggests that performance gains on future heterogeneous architectures will be hard to port. Nonetheless, it is clear that the investment of months in analysis and optimisation has yielded performance gains that correspond to the saving of tens of millions of core-hours on current climate projects.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Karthee Sivalingam, Grenville Lister, Bryan Lawrence. 2015-11-12. Performance analysis and Optimisation of the Met Unified Model on a Cray XC30. https://arxiv.org/abs/1511.03885

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

CDFCI: High-Performance Parallel Software for Quantum Many-Body Eigenvalue Problems

CDFCI is a shared-memory parallel numerical program for computing low-lying eigenpairs of large-scale, non-relativistic fermionic Hamiltonians. The software is designed to handle a broad class of many-body quantum models, including both ab initio electronic structure Hamiltonians and lattice-based Hamiltonians arising in condensed matter physics. CDFCI combines an efficient coordinate-descent-based selected configuration interaction algorithm with dedicated parallelization strategies, achieving high performance on modern multi-core architectures. Benchmark results on representative quantum chemistry and condensed matter test cases demonstrate that CDFCI attains state-of-the-art accuracy with competitive performance compared to established selected configuration interaction (such as CIPSI or SHCI) and DMRG implementations. The software is open-source, extensively documented, and provides a Python interface for seamless integration with PySCF and other many-body simulation workflows.

physics.comp-ph

Agentic Porting, Construction and Initial Verification and Validation of Libraries within the Open Source Unified TRAnsient Multi-Phase Advanced Reactor simulation Kit (Outram Park) Part I: A Software Engineering Log for Thermal Hydraulics

Agentic porting of multiple open-source libraries into Rust, with human in the loop, has been performed for construction of modules within the Open-source Unified TRAnsient Multi-Phase Advanced Reactor simulation Kit (Outram Park). With this new methodology, verification and validation with human expertise, rather than code generation, has become the bottleneck in developing reliable simulation codes. In this work, we present the porting of OpenFOAM libraries into the Outram-Foam Rust libraries, their preliminary verification and validation (V&V) efforts, and their subsequent use in the development of open-source two-phase homogeneous-equilibrium (HEM) choked-flow solvers for the Thermo-hydraulic AI Multi-Phase INtegrated Emulator System (TAMPINES) libraries within Outram Park, such as tampines-steam-tables. V&V efforts of Outram-Foam show that the cavity and Sod shock tube cases agree with literature values to within acceptable margin. Moreover, the preliminary development of tampines-steam-tables shows good agreement with Moody's HEM charts. Thereafter, the 1D HEM solver, developed agentically, is presented and preliminarily validated against the Edwards blowdown case. Productivity increases were observed with the use of Claude Code, but domain expertise supplied by human experts remains critically required to ensure the generated code can solve the problem effectively. Further work remains to be done in V&V, but the agentic coding methodology described here demonstrates considerable potential to speed up production and development of open-source libraries such as Outram Park.

physics.comp-ph

Mollified-sharp decomposition: a probabilistic regularization of parametric POD for shock-bearing flows

This paper introduces the mollified-sharp decomposition, a probabilistic regularization of moving shocks in parametric reduced-order models. Each detected shock location is treated as a random variable with a prescribed probability density. Averaging over this artificial distribution replaces the localized pressure change by a smooth transition whose spatial extent is set by the density width, rather than by direct filtering of the pressure field. Each snapshot is decomposed exactly into a regularized mollified field and a local sharp correction that restores the shock. This probabilistic construction and exact additive split define the general method; the detector, kernel, treatment of multiple shocks, alignment coordinates, and regression are implementation choices. In the present realization, a calibrated indicator detects shocks, a compactly supported Wendland kernel mollifies them, and a peak-normalized and, where necessary, partitioned weight derived from each shock-location probability density defines the centroid, principal axes, and scales of its local alignment domain. Separate POD-GPR models represent the mollified field and aligned corrections, with additional regressions for shock presence and alignment. The method is demonstrated on the transonic airfoil pressure data of Catalani et al. (2023) and compared with a standard POD-GPR model constructed from the same data and POD-energy criterion. The mollified-sharp model reduces the mean test-set relative $L^2$ pressure error by 31.2% and the mean test-set surface-pressure-coefficient error by 33.2%, while also improving the predicted shock locations and pressure changes; the trade-off is a median online evaluation time 2.24 times as long. The construction is applicable in principle to other parameter-dependent fields with moving sharp features, such as moving material interfaces in multiphase flows.

physics.comp-ph