P4IRS: An intermediate representation and compiler for parallel and performance-portable particle simulations

Various physics simulations today rely on simulating particle interactions, where particles can represent point masses (Molecular Dynamics), rigid bodies (Discrete Element Method) or even massive bodies such as planets. Evaluating and calculating the required particle interactions in a simulation is computationally expensive, hence suitable algorithms and proper optimizations to exploit available parallelism in the target hardware are important to reach good performance. However, it is difficult to maintain flexible implementations while keeping state-of-the-art performance, as most packages are developed individually and have their own hard-coded, fine-tuned implementations. To combine flexibility and optimal performance, we introduce P4IRS, an intermediate representation and compiler for particle simulations which aims at generating high-performing code. We describe P4IRS and its features, provide some usage examples for MD and DEM fields and discuss the benefits we can obtain with code generation. Finally, we evaluate the performance and scalability from the code generated by P4IRS on modern processors, accelerators and supercomputers.

Authors

Institutions

Publication Details

Journal
The International Journal of High Performance Computing Applications
Published
2025-12-08
DOI
https://doi.org/10.1177/10943420251405928
Citations
1
Primary Topic
Protein Structure and Dynamics
Type
article
Field-Weighted Citation Impact
0.81
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

P4IRS: An intermediate representation and compiler for parallel and performance-portable particle simulations

Rafael Ravedutti Lucio Machado, Jan Eitzinger, Harald Köstler
1 citations
The International Journal of High Performance Computing Applications
Protein Structure and Dynamics
0.81
article

P4IRS: An intermediate representation and compiler for parallel and performance-portable particle simulations

Rafael Ravedutti Lucio Machado, Jan Eitzinger, Harald Köstler
article en
1 citations

Abstract

Various physics simulations today rely on simulating particle interactions, where particles can represent point masses (Molecular Dynamics), rigid bodies (Discrete Element Method) or even massive bodies such as planets. Evaluating and calculating the required particle interactions in a simulation is computationally expensive, hence suitable algorithms and proper optimizations to exploit available parallelism in the target hardware are important to reach good performance. However, it is difficult to maintain flexible implementations while keeping state-of-the-art performance, as most packages are developed individually and have their own hard-coded, fine-tuned implementations. To combine flexibility and optimal performance, we introduce P4IRS, an intermediate representation and compiler for particle simulations which aims at generating high-performing code. We describe P4IRS and its features, provide some usage examples for MD and DEM fields and discuss the benefits we can obtain with code generation. Finally, we evaluate the performance and scalability from the code generated by P4IRS on modern processors, accelerators and supercomputers.

The International Journal of High Performance Computing Applications
Friedrich-Alexander-Universität Erlangen-Nürnberg (DE)
Openalex Percentile: Top 21%
Protein Structure and Dynamics
0.81
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.