RAPTOR: Practical Numerical Profiling of Scientific Applications DOI: XXXXXXX.XXXXXXX Conference: Make sure to enter the correct conference title from your rights confirmation email; June 03–05, 2018; Woodstock, NY ISBN: 978-1-4503-XXXX-X/2018/06 CCS: Mathematics of computing Arbitrary-precision ari
Faveo Hoerold, Ivan R. Ivanov, Akash Dhruv, William S. Moses, Anshu Dubey, Mohamed Wahib, Jens Domke · 2025
Read RAPTOR: Practical Numerical Profiling of Scientific Applications DOI: XXXXXXX.XXXXXXX Conference: Make sure to enter the correct conference title from your rights confirmation email; June 03–05, 2018; Woodstock, NY ISBN: 978-1-4503-XXXX-X/2018/06 CCS: Mathematics of computing Arbitrary-precision ari by Faveo Hoerold, Ivan R. Ivanov, Akash Dhruv, William S. Moses, Anshu Dubey, Mohamed Wahib, Jens Domke (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-04647.txt.
Introduction
Faveo Hoerold and six co-authors introduce RAPTOR, a tool that helps scientists find where their code can safely use lower-precision arithmetic, in a 2025 paper. Modern supercomputer chips increasingly favor the low-precision math that artificial intelligence uses, while full sixty-four-bit capability stalls. Simply swapping numbers to a smaller format can wreck results, so the choice needs care.
Built on the LLVM compiler framework, RAPTOR swaps high-precision operations for low-precision ones, or emulates a chosen precision, and reports where problems appear. The authors designed it to be easy to use and rich in feedback. They show it at work on four real multi-physics cases from the Flash-X simulation code.
Catalog record
| CREATOR | Faveo Hoerold, Ivan R. Ivanov, Akash Dhruv, William S. Moses, Anshu Dubey, Mohamed Wahib, Jens Domke |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 57 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2507-04647
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
RAPTOR: Practical Numerical Profiling of Scientific Applications DOI: XXXXXXX.XXXXXXX Conference: Make sure to enter the correct conference title from your rights confirmation email; June 03–05, 2018; Woodstock, NY ISBN: 978-1-4503-XXXX-X/2018/06 CCS: Mathematics of computing Arbitrary-precision arithmetic CCS: General and reference Empirical studies CCS: Computing methodologies Massively parallel and high-performance simulations Faveo Hoerold, Ivan R. Ivanov, Akash Dhruv, William S. Moses, Anshu Dubey, Mohamed Wahib, Jens Domke Abstract . The proliferation of low-precision units in modern high-performance architectures increasingly burdens domain scientists. Historically, the choice in HPC was easy: can we get away with 32 bit floating-point operations and lower bandwidth requirements, or is FP64 necessary? Driven by Artificial Intelligence, vendors introduced novel low-precision units for vector and tensor operations, and FP64 capabilities stagnate or are reduced. This is forcing scientists to re-evaluate their codes, but a trivial search-and-replace approach to go from FP64 to FP16 will not suffice. We introduce RAPTOR : a numerical profiling tool to guide scientists in their search for code regions where precision lowering is feasible. Using LLVM, we transparently replace high-precision computations using low-precision units, or emulate a user-defined precision. RAPTOR is a novel, feature-rich approach—with focus on ease of use—to change, profile, and reason about numerical requirements and instabilities, which we demonstrate with four real-world multi-physics Flash-X applications. Figure 1 . Qualitative visualization of bubble deformation and splitting over time ( t ) for the Bubble test case at Reynolds number \text{Re}=3500 , performed using incompressible multiphase fluid dynamics solvers in Flash-X . The contours depict the zero level of the level-set function, \phi=0 , which defines the air-water interface ( \phi>0 in the air phase and \phi<0 in the water phase). Adaptive mesh refinement (AMR) levels \Omega_{M} , \Omega_{M-1} , and \Omega_{M-2} are shown and labeled in the left panel. AMR dynamically refines the mesh near the interface to accurately capture interface dynamics. We use RAPTOR to truncate FP operations in the advection and diffusion modules of the Navier-Stokes solver following two different strategies. In the first strategy ( Trunc. Everywhere ), truncation is applied throughout the entire mesh. The second strategy selectively applies truncation in each mesh cell using a cut-off at the M-l AMR level (where l=1,2,\ldots ). Insets show zoomed-in views of the liquid-gas interface for simulations using 4 bit and 12 bit mantissas, highlighting the effect of reduced precision on the final simulation outcome. Further details in § 6.2 . Table 1 . Categorization and comparison of RAPTOR to existing approaches and tools. These categories are used: ( A ) Algorithmic mixed precision, ( B ) Automatically changing precision, ( C ) System software-enabled precision changes, ( D ) Application-granularity, ( E ) Wrapper and emulator, ( F ) Precision format, and ( G ) Observe behavior w/o changing precision. Feature details are as follows: Full app. runs indicates support for unmodified software w/o infeasible runtime increase 6 6 6 Binary for tools which are able to instrument executables. . Dynamic truncation means that truncation of variables can be made algorithmically dependent on the simulation state 7 7 footnotemark: 7 . Flexible formats stands for arbitrary precision support. Scoped truncation lets the user mark a function/region and the tool truncates the entire call stack below 8 8 footnotemark: 8 . Granular truncation means that individual operations can be in-/excluded from truncation 9 9 footnotemark: 9 . Error tracking traces errors through the application code 10 10 footnotemark: 10 . Non- \nabla code means that arbitrary (even non-differentiable) code is supported. Approach Category Feature set Ref. Full app. truncation Dynamic trunc. Flexible formats Scoped trunc. Granular trunc. Error tracking Non- \nabla Code Supported languages 11 11 footnotemark: 11 ADAPT B C, C++, Fortran ( Menon et al. 2018 ) CADNA C N/A Ada, C, Fortran ( Jézéquel et al. 2021 ) FPSpy G N/A N/A Binary ( Dinda et al. 2020 ) FPVM D Binary ( Dinda et al. 2022 ) GPU-FPX G N/A N/A GPU Binary ( Li et al. 2023 ) GPUMixer B CUDA ( Laguna et al. 2019 ) Jost et al. C, E, F N/A C ( Jost et al. 2021 ) Gu et al. E C, C++ ( Gu et al. 2020 ) NEAT E Binary ( Barati et al. 2021 ) Precimonious A N/A C ( Rubio-González et al. 2013 ) Puppeteer D N/A C, C++ ( Parasyris et al. 2022 ) RAPTOR B, C, E C, C++, Fortran 1. Introduction Scientific computing has traditionally relied upon double precision floating-point arithmetic to ensure numerical accuracy and stability across a wide range of problems. However, the growing availability of hardware optimized for lower precision—such as single or even half precision—presents an opportunity to significantly reduce energy consumption and improve computational efficiency. The core dilemma lies in balancing performance gains with the need for reliable scientific results. Some numerical methods are more amenable than others to systematic reduction of precision and can rely on a robust mathematical foundation for maintaining confidence in the outcome. Of these, numerical linear algebra has witnessed the highest level of activity. Several other areas such as many ordinary- and partial-differential equation (ODE and PDE) solvers do not have such mathematically founded support for lowering precision. While many parts of a simulation may tolerate lower precision without compromising accuracy, identifying these regions is nontrivial and highly problem-dependent. Using full precision everywhere guarantees numerical robustness but can be wasteful, whereas an indiscriminate use of reduced precision risks introducing errors that propagate and distort the final outcome as Fig. 1 illustrates for a rising bubble simulation. Here, the incompressible multiphase fluid-dynamics problem involves the deformation and splitting of an air bubble rising in a pool of water. Fig. 1 visualizes the evolution of the liquid-gas interface and highlights how different mantissa truncations and numerical precisions (4 bit vs. 12 bit mantissa) affect interface dynamics. A zoomed-in view emphasizes these differences. A full analysis of the experiment is provided in Sections 4 to 6 . This example demonstrates that for such workloads the challenge is to develop intelligent strategies and tools that enable selective precision tuning without undermining the fidelity of scientific simulations. In this paper, we introduce a numerical profiling methodology and accompanying new tool, called RAPTOR , that can numerically profile code execution and enable scientists to infer the impact of reduced precision in an actionable way. We apply RAPTOR to a diverse set of application configurations in Flash-X ( Dubey et al. 2022 ) , a multiphysics multidomain application software, where mathematical guidance typically predicts that double precision is needed almost everywhere. We use scientific intuition to selectively reduce precision in code components and observe the impact through the profiles generated by RAPTOR . These experiments effectively demonstrate a methodology where generated insights enable meaningful cost-benefit analysis for running simulation campaigns where mathematics does not provide any guidance. With focus on the scientific applications community, our paper makes the following contributions: • We introduce RAPTOR to easily profile and alter floating-point precision in user-specified code regions for C, C++, and/or Fortran; including MPI support. [ Section 3 ] • We devise a methodology and demonstrate how RAPTOR can be used to experiment and reason about scientific application behavior to make informed choices