arXiv:2610.23383cs.PFOct 2026

Manuscript Offprint

arXiv:2610.23383

Data-Driven Prediction of Optimal MPI Rank Placement and Node Count for Memory-Bound CFD on AMD EPYC Clusters

Marcin Lawenda, Łukasz Szustak, Aleksandra Krasicka

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Marcin Lawenda 1^{1}[0000-0003-4844-3655], Łukasz Szustak 2^{2}[0000-0001-7429-6981], and Aleksandra Krasicka 1^{1}[0009-0008-3860-4439]

1^{1} Poznan Supercomputing and Networking Center, Jana Pawła II 10, 61-139 Poznań, Poland {lawenda,akrasicka}@man.poznan.pl

2^{2} Czestochowa University of Technology, Dąbrowskiego 69, 42-201 Czestochowa, Poland

lukasz.szustak@pcz.pl

Abstract. Users who run a memory-bound OpenFOAM case on an AMD EPYC cluster must decide how many nodes to use and how many MPI ranks to place on each core complex. The fastest choice is often not the cheapest one. This paper revisits our earlier analytical model of this performance and energy trade-off with 560 measured configurations of the motorBike case on five Zen 4 and Zen 5 EPYC processors, including socket power from processor telemetry. On up to four nodes, small meshes are both fastest and cheapest on a single node on most processors. For the largest mesh the largest node count is both the fastest and the cheapest option, because its speedup is superlinear. A genuine trade-off arises only for medium meshes, where full speed costs a median of 20 to 97% more node hours than the cheapest option. The L3 miss rate and the halo traffic per cell are consistent with this pattern. For a new mesh of the same case, the configuration that was optimal on the nearest measured mesh is near optimal in 75 to 85% of the decisions. Running the two configurations it recommends for speed and for cost raises this share to 85 to 90% for runtime and node hours and determines the trade-off with median errors of 3 to 5 percentage points. Neither gradient boosted trees trained on the same data nor the earlier polynomial model improves on this simple procedure.

Keywords: CFD · OpenFOAM · AMD EPYC · MPI placement · Energy efficiency · Performance and energy trade-off · Surrogate model.

1 Introduction

Computational fluid dynamics (CFD) codes such as OpenFOAM are limited by memory traffic more than by arithmetic. On current AMD EPYC processors their speed depends on how well the cells of each MPI rank fit into the L3 cache of a core complex (CCX) and on how much halo data the ranks exchange. Before submitting such a job, a user has to decide how many compute nodes to request and how many ranks to place on each CCX. Both choices affect the runtime as well as the cost of the job in node hours or in energy, so the cost of a shorter runtime should be known before the job starts.

Our earlier work studied this question on a cluster of AMD EPYC Milan processors [17][17]. It introduced the CVOPTS metric, the number of cells processed per core and time

M. Lawenda et al.

step, fitted it with a polynomial in the number of cells per core and derived the runtime and the cost of each node count from the fit. Since that cluster did not measure power, the energy was estimated from the thermal design power (TDP). A later study compared several EPYC generations on CFD applications and traced their differences to the cache and memory subsystems [18].

This paper extends that work to five processors of the Zen 4 and Zen 5 generations, uses socket power from processor telemetry and treats the rank placement as a second decision. It addresses a user with a new mesh of a case that has already been measured. The paper makes the following four contributions to this question:

– Measurements of the speed and cost trade-off over eight meshes, up to four nodes and five placements per processor, which show for which meshes a trade-off exists and how large it is.

– An analysis of hardware counters that relates superlinear speedup to the L3 miss rate and the loss of efficiency to the halo traffic per cell.

– A simple prediction procedure for a new mesh, which takes the configuration from the nearest measured mesh and measures the trade-off with two guided runs.

– An assessment of this procedure against gradient boosted trees, the earlier polynomial model, the best of random runs and common fixed rules.

Section 2 reviews related work, Section 3 describes the measurements and Section 4 defines the trade-off. Sections 5 and 6 present the measured trade-off and its hardware causes. Section 7 introduces the prediction method, Section 8 shows its predictions and Section 9 assesses them. Section 10 concludes.

References (28)