scieee AI-readable full text Open interactive document viewer

Performance and energy consumption of HPC workloads on a cluster based on Arm ThunderX2 CPU

Mantovani, Filippo,Garcia Gasulla, Marta,Gracia, Jose,Stafford, Esteban,Banchelli Gracia, Fabio,Josep Fabregó, Marc,Criado Ledesma, Joel,Nachtmann, Mathias

Abstract

In this paper, we analyze the performance and energy consumption of an Arm-based high-performance computing (HPC) system developed within the European project Mont-Blanc 3. This system, called Dibona, has been integrated by ATOS/Bull, and it is powered by the latest Marvell’s CPU, ThunderX2. This CPU is the same one that powers the Astra supercomputer, the first Arm-based supercomputer entering the Top500 in November 2018. We study from micro-benchmarks up to large production codes. We include an interdisciplinary evaluation of three scientific applications (a finite-element fluid dynamics code, a smoothed particle hydrodynamics code, and a lattice Boltzmann code) and the Graph 500 benchmark, focusing on parallel and energy efficiency as well as studying their scalability up to thousands of Armv8 cores. For comparison, we run the same tests on state-of-the-art x86 nodes included in Dibona and the Tier-0 supercomputer MareNostrum4. Our experiments show that the ThunderX2 has a 25% lower performance on average, mainly due to its small vector unit yet somewhat compensated by its 30% wider links between the CPU and the main memory. We found that the software ecosystem of the Armv8 architecture is comparable to the one available for Intel. Our results also show that ThunderX2 delivers similar or better energy-to-solution and scalability, proving that Arm-based chips are legitimate contenders in the market of next-generation HPC systems.

Full text

Performance and energy consumption of HPC workloads on a cluster based on Arm ThunderX2 CPU Filippo Mantovania,∗ , Marta Garcia-Gasullaa, José Graciab, Esteban Staffordc, Fabio Banchellia, Marc Josep-Fabregoa, Joel Criado-Ledesmaa, Mathias Nachtmannb aBarcelona Supercomputing Center (Spain) bHigh Performance Computing Center Stuttgart (HLRS), University of Stuttgart (Germany) cUniversity of Cantabria (Spain) Abstract In this paper, we analyze the performance and energy consumption of an Arm-based high-performance computing (HPC) system developed within the European project Mont-Blanc 3. This system, called Dibona, has been integrated by ATOS/Bull, and it is powered by the latest Marvell’s CPU, ThunderX2. This CPU is the same one that powers the Astra supercomputer, the first Arm-based supercomputer entering the Top500 in November 2018. We study from microbenchmarks up to large production codes. We include an interdisciplinary evaluation of three scientific applications (a finite-element fluid dynamics code, a smoothed particle hydrodynamics code, and a lattice Boltzmann code) and the Graph 500 benchmark, focusing on parallel and energy efficiency as well as studying their scalability up to thousands of Armv8 cores. For comparison, we run the same tests on state-of-the-art x86 nodes included in Dibona and the Tier-0 supercomputer MareNostrum4. Our experiments show that the ThunderX2 has a 25% lower performance on average, mainly due to its small vector unit yet somewhat compensated by its 30% wider links between the CPU and the main memory. We found that the software ecosystem of the Armv8 architecture is comparable to the one available for Intel. Our results also show that ThunderX2 delivers similar or better energy-to-solution and scalability, proving that Arm-based chips are legitimate contenders in the market of next-generation HPC systems. Keywords: HPC Applications, CFD, Benchmarks, ThunderX2, Scalability, Energy 1. Introduction The Arm architecture is gaining significant traction in the race to Exascale. Several international collaborations, including the Japanese Post-K, the European Mont-Blanc, and the UK’s GW4/EPSRC, announced the adoption of Arm technology as a viable option for high-end production high-performance computing (HPC) systems. During November 2018, for the first time, an Arm-based system was ranked in the Top500 list. It was the Astra supercomputer powered by Marvell’s (former Cavium) ThunderX2 processor, integrated by HPE and installed at the Sandia National Laboratories (US). For more than six years, research projects have evaluated Arm-based systems for parallel and scientific computingin collaboration with industry, advocatingthehigherefficiencyof thistechnology mutated from the mobile and the embedded market. Computational requirements of scientific and industrial applications are increasing. As a consequence, the ∗Corresponding author Email addresses: filippo.mant[email protected] (Filippo Mantovani), marta.garci[email protected] (Marta Garcia-Gasulla), [email protected] (José Gracia), esteban.sta[email protected] (Esteban Stafford), fabio.banch[email protected] (Fabio Banchelli), [email protected] (Marc Josep-Fabrego), [email protected] (Joel Criado-Ledesma) HPC market is also growing steadily in double digits, accordingtooneofthelatestreportsofHyperionResearch1. This market growth goes hand in hand with the appearance of a jungle of new technologies and architectures. From an economic standpoint, this will help to diversify the market and level the prices. From a technical point of view, however, it is not always clear what the gains are, in terms of performance and energy consumption, of new technologies entering the data centers. The most prominent example of this phenomenon is the adoption of GP- GPUs in HPC: even if the benefit of using graphical accelerators was shown in the early 2000, it is only now, after more than ten years, that data centers consider GP-GPU a well established HPC technology. A very similar dynamic is happening with the adoption of Arm CPUs. In this blurry scenario, we performed our study to help HPC application scientists in understanding the real implications of using this new technology. We targeted the latest Arm-powered CPU by Marvell that offers close to state-of-the-art performance. The ThunderX2 processor powers the Dibona cluster, the system we have used for our evaluation. In contrast, we have also considered Intel 1 https://www.hpcwire.com/2018/06/27/ at-isc18-hyperion-reports Preprint submitted to Future Generation Computer Systems (FGCS) July 2, 2020 © 2020 Elsevier. This manuscript version is made available under the CC-BY-NC-ND 4.0 license http://creativecommons.org/licenses/by-nc-nd/4.0/ Skylake CPUs, which are available on some nodes of Dibona, as well as in the state-of-the-art Tier-0 supercomputer MareNostrum4. Our analysis follows a bottom-up approach: we start from the micro-benchmarking of the cluster, moving then to a higher level evaluation using HPC applications, first in a single node, and finally scaling up to a thousand cores. We selected a set of production HPC workloads from those considered in the European project Mont-Blanc 3, which proved to be scalable on different state-of-the-art HPC architectures, and we measured their performance at scale as well as their energy footprint. We also include the Graph 500 benchmark as a representative of an emerging irregular work flow. By doing so, we de facto explore different architectural configurations of CPUs and show that, while the ISA does not seem to make a big difference in the final overall performance, the micro-architectural choices (e.g., the size of the SIMD units or the organization of the memory hierarchy) and the software configurations (e.g., compilers) are vital factors for delivering a powerful and efficient modern HPC system. The main contributions of this paper are i We provide a comparative analysis of the Arm-based ThunderX2 cluster Dibona and the Intel Skylake based Tier-0 supercomputer MareNostrum4. We show that the software tools for the ThunderX2 are mature and on the same level as those available for Skylake, and the performance of a ThunderX2 node is, on average, 25% less than for a Skylake node. ii We analyze the power drain of the Marvell ThunderX2 processor under three HPC production codes and a benchmark, comparing it with that of state-of-the-art HPC technology. We show that the energy-to-solution of the two cluster technology under study are equivalent. iii We study the behavior at scale of these codes in a ThunderX2 cluster and x86-based Tier-0 supercomputer MareNostrum4, concluding that the scalability trends of both technologies are comparable. The rest of the document is structured as follows: In Section 2, we introduce the context of our evaluation, and in Section 3and 4, we detail the evaluation methodology and the hardware features of the HPC clusters used in the following sections. Section 5is dedicated to introducing the HPC applications and their characterization when running on Dibona. Section 6is reserved for energy measurements and comparisons. In Section 7, we report the result of our tests at scale on Dibona and MareNostrum4 Tier-0 HPCsupercomputer, and Section8includes performance projections based on these results. We conclude with Section 9, where we summarize our evaluation experience. 2. Related Work Several papers have been published with preliminary analyses of benchmarks and performance projections of the Arm-based system-on-chip (SoC) coming from the mobile and embedded market [1,2,3,4,5]. More recently, tests on the Arm-based server SoC have also appeared in the literature [6,7]. The most relevant and recent work focusing on evaluating the ThunderX2 processor is the one of McIntosh-Smith et al. in [8]. They evaluate Isambard, a high-end Tier-2 system developed by Cray in the framework of the GW4 alliance [9]. While they provide an extensive single-node evaluation, we complement their contribution evaluating HPC applications at scale. For our evaluation, we chose three HPC production codes: Alya [10], a finite elements code handling multiphysics simulations developed at the Barcelona Supercomputing Center, already studied on different architectures in [11,12]; a Lattice-Boltzmann code LBC [13] using the BGK approximation for the collision term [14], which, even if it is not a full-production code, mimics the typical behavior of Lattice Boltzmann simulations used both foradvancedfluiddynamicsstudies[15]andarchitectural evaluation [16,17]; Tangaroa [18,19], a smoothed particle hydrodynamics code, whose purpose is to simulate fluids in a way suitable for computer animation. We also included in our study the Graph 500 benchmark [20] as a representative of an emerging irregular workflow that not only benefits from the pure floating-point performance of a system, but also stresses the memory and the network with irregular access patterns. In addition to the several studies of this benchmark, we recall the one of Checconi et al. in [21], where the authors study the Graph 500 benchmark on a successful HPC architecture, the IBM Blue Gene/Q CPU. TheuseofArm-technologyinHPChasalsobeenmoved by energy-efficient arguments. Like several others, we try to address them comparing the performance and the energy-to-solution of our four test cases on different architectures. Radulovic et al. [22] provide an extensive study of emerging HPC architectures, including their performance and efficiency. However, they focus mostly on benchmarks and kernels, while we evaluate complex codes used for the production of scientific results (e.g., Alya). Jarus et al. [23] also study the performance and efficiency of CPUs for HPC by different manufacturers. They focused on HPL, providing for each CPU an extrapolation oftherankingintheGreen500. Asalreadymentioned, our contribution focuses less on benchmarks and more on realapplications. Itis also worth mentioning thattheCPU technology that we are evaluating is targeted at the data center market, not a technology borrowed from the embedded world. D’Agostino et al. [24] as well as McIntosh- Smith et al. [8] also analyze the cost efficiency of emerging technologies in HPC. We prefer to leave the variable of the price out of our analysis, since it involves a negotiation process beyond our control and, in our opinion, 2 would make the comparison less relevant. 3. Hardware Description In this section, we present the technical specifications of the systems used for our analysis. These are the new HPC Arm-based cluster, called Dibona, mainly built around the ThunderX2 processor, and for comparison, MareNostrum4, an Intel-based supercomputer, whichrepresentsawell-knownbaselineHPCarchitecture. Table 1shows a summary of the hardware configurations of the clusters used as a reference in our study. Table 1: Summary of the hardware configuration of the platforms Dibona-TX2 Dibona-X86 MareNostrum4 Core architecture Armv8 Intel x86 Intel x86 CPU name ThunderX2 Skylake Platinum Skylake Platinum Frequency [GHz] 2.0 2.1 2.1 Sockets/node 2 2 2 Core/node 64 56 48 Memory/node [GB] 256 256 96 Memory tech. DDR4-2666 DDR4-3200 DDR4-3200 Memory channels 8 6 6 Num. of nodes 40 3 3456 Interconnection Infiniband EDR Infiniband EDR Intel OmniPath System integrator ATOS/Bull ATOS/Bull Lenovo 3.1. The MareNostrum4 Supercomputer MareNostrum4 is a Tier-0 supercomputer in production at Barcelona Supercomputing Center (BSC) in Barcelona, Spain. It has a total of 3456 compute nodes available, which include two Intel Xeon Platinum 8160 processors, each with 24 Skylake cores clocked at 2.1 GHz and with 6 DDR4-3200 memory channels 2. Each node is equipped with 96 GB of DDR4-3200. The interconnection network is 100 Gbit/s Intel Omni-Path (OPA). MareNostrum4 runs a Linux 4.4.12 kernel, and it uses SLURM 17.11.7 as a workload manager. In this supercomputer, we perform our scalability study presented in Section 7. 3.2. The Dibona Cluster The Dibona cluster is the primary outcome of the European project Mont-Blanc 3. It was designed and integrated by ATOS/Bull and evaluated by the Mont-Blanc 3 partners between September2018andFebruary2019[25]. Thanks to the ATOS/Bull Sequana HPC infrastructure, it seamlessly integrates 40 Arm-based compute nodes, together with three x86-based compute nodes. Each Armbased compute node is powered by two Marvell ThunderX2 CN9980 processors, each with 32 Armv8 cores at 2.0 GHz, 32 MB L3 cache, and 8 DDR4-2666 memory channels. The x86 nodes are powered by Intel Xeon Platinum 8176 processor with 28 Skylake cores running at 2.1 GHz with 6 DDR4-2666 memory channels. The total amount of RAM installed is 256 GB per compute node. 2 https://www.bsc.es/user-support/mn4.php Compute nodes are interconnected with a fat-tree network, with a pruning factor of 1⁄2at level 1, implemented withMellanoxIBEDR-100switches. Aseparated1GbEnet- work is employed for the management of the cluster and a network file system (NFS). Dibona runs the Linux 4.14.0 kernel, and it uses SLURM 17.02.11 patched by ATOS/Bull as a job scheduler. 3.3. Mapping of our study on hardware resources Having MareNostrum4 deployed at the Barcelona Supercomputing Center allows us to use it as a reference machine to be compared with Dibona for benchmarking (as described in Sections 4and 5) and as a platform to scale applications at thousands of cores (as presented in Section 7). Moreover, the fact that Dibona houses Armv8 and x86 compute nodes allowed us to carry out fair energy comparisons in Section 6with nodes on the same system, differing mainly in their CPU architecture, and offering an identical power monitoring infrastructure. In Table 2, we map the studies performed in this manuscript onto the hardware platforms available for this evaluation. Table 2: Summary of the study performed in this manuscript Type of study Application Dibona-TX2 Dibona-X86 MareNostrum4 Hardware characterization Section 4 STREAM X X FPU µ-kernel X X Roofline X X OSU X X Single-node performance Section 5 Alya X X LBC X X Tangaroa X X Graph 500 X X Energy measurements Section 6 Alya X X LBC X X Tangaroa X X Graph 500 X X Scalability Section 7 Alya X X LBC X X Tangaroa X X Graph 500 X X In the rest of the document, we refer to the partition of Dibona powered by Arm ThunderX2 CPUs with the name Dibona-TX2 (shortened to DBN-TX2 when required). Artworks related to this systems are displayed in red. The partition of Dibona powered by x86 Skylake CPUs is named Dibona-X86 (shortened to DBN-X86 when required). Artworks related to x86-based CPUs (both Dibona-X86 and MareNostrum4) are displayed in blue. 4. Hardware Characterization This section is dedicated to the micro-benchmarking Dibona-TX2, the Arm-based platform selected for our study. We use MareNostrum4 as the state-of-the-art system for comparison. 3 4.1. Dibona-TX2 Memory Subsystem Here we evaluate the memory bandwidth using STREAM [26], a simple synthetic benchmark to measure sustainable memory bandwidth. Our study analyses a ThunderX2 node from the Dibona-TX2 cluster, compared side by side with a Skylake node from MareNostrum4. STREAM kernels iterate through data arrays of doubleprecision floating-point elements (8 bytes) with a size fixed at compile time. The size of each array Emust be greater than the maximum between ten million elements and four times the size of the sum of all the last-level caches. E≥max {10,000,000 ; 4 ·S/8} where Eis the number of elements of each array, and S is the size of the last level cache in bytes. Table 3shows a brief overview of the memory subsystem of each socket, includingtheminimumvalueofEandthecompilerflavor and version used. The reader should remember that each node has two sockets. Table 3: Memory subsystem overview Dibona-TX2 MareNostrum4 Architecture Arm ThunderX2 x86 Skylake L1 cache size 32 kB 64 kB L2 cache size 256 kB 256 kB L3 cache size 32 MB 33 MB Main mem. tech. DDR4-2666 DDR4-3200 # of channels 8 6 Peak bandwidth 170.64 GB/s 153.60 GB/s E16777216 17301504 Compiler Arm 18.3 Intel 17.0.4 We run the benchmark by fixing the problem size to the minimum valid value of Efor each platform and increasing the number of OpenMP threads. We report the results of the Triad function as a representative kernel since the rest of them have a similar behavior. Threads are pinned to cores by using OMP_PROC_BIND=true , distributing the threads evenly across both sockets and minimizing the number of threads accessing the same L2 cache. Figure 1shows the achieved bandwidth. The x−axis represents the number of OpenMP threads, growing up to the number of cores in each node, and the y−axis indicates the maximum bandwidth achieved throughout 200 executions of the kernel. The figure also includes two horizontal lines representing the theoretical peak bandwidth of each processor. Please note that the DDR technology is different: the ThunderX2 CPU housed in the Dibona-TX2 cluster uses DDR4-2666, with a theoretical peak of 21.33 GB/s per channel, and the Skylake CPU of MareNostrum4 uses DDR4-3200, with a theoretical peak of 25.60 GB/s per channel. The figure shows that ThunderX2 reaches 228.62 GB/s (67% of the peak) in the Triad kernel when running with 64 OpenMP threads (i.e., one full node), while Figure 1: STREAM Triad Best bandwidth achieved over number of OpenMP threads in Dibona and MareNostrum4 nodes, thread binding: Interleaved MareNostrum4 obtains 171.89 GB/s (56% of the peak) with 48 OpenMP threads. This fact shows that, although the ThunderX2 has slower memory, it outperforms the Skylake thanks to the extra memory channels. 4.2. Floating-Point Throughput We designed a micro-kernel to measure the peak floating-point throughput of a given CPU. We call this codeFPU_µkernel. Itcontainsexclusivelyfused-multiply- accumulate assembly instructions with no data dependencies between them. The kernel has four versions distinguishing between i) scalar and vector instructions and ii) single and double precision. The Armv8 ISA has floating-point instructions that accept single- and double-precision registers as operands. In this case, the kernel uses the instruction FMADD . In Dibona-TX2, the Armv8 cores of the ThunderX2 integrate the NEON vector extension. With 128 bit registers, it can fit either two double-precision or four single-precision data elements per register. The kernel uses the NEON vector instruction FMLA .Althoughthex86 ISAhasfloating-pointinstruc- tions that run on the FPU, the more recent SIMD instructions of the AVX512 vector extension are recommended. Thus, the compiler automatically translates a*b+c to VFMADD132SS or VFMADD132SD for single- and doubleprecision instructions, respectively. We implemented the SIMD version of the kernel using the AVX512 instruction VFMADD132PS for single precision and the VFMADD132PD for double precision. This means that the scalar version of the code in the x86 architecture will use vector instructions with the same behavior as scalar floatingpoint instructions. The theoretical peak of the vector unit can be computed as the product of i) the vector size in elements (e.g., four single-precision elements in NEON); ii) the number of instructions issued per cycle; iii) the frequency of the processor; iv) the number of floating-point operations made by the instruction (e.g., fused-multiply- accumulate does two floating-point operations). Table 4 lists these parameters and the theoretical peak for the 4 Table 4: Theoretical peak performance of one NEON and one AVX512 vector units in Dibona-TX2 and MareNostrum4 nodes Dibona-TX2 MareNostrum4 Architecture Arm ThunderX2 x86 Skylake Vector extension NEON AVX512 Instruction FMLA VFMADD Precision Single Double Single Double Vec. Length 4 2 16 8 Issue/cycle 2 2 2 2 Freq. [GHz] 2.00 2.00 2.10 2.10 Flop/Inst 2 2 2 2 Peak [GFlop/s] 32.00 16.00 134.40 67.20 vector extensions available in Dibona-TX2 and MareNostrum4 nodes, bothwith singleanddouble-precision vector operations. Figure 2: Sustained performance in one core of the four versions of the FPU_µKernel in Dibona-TX2 and MareNostrum4 nodes (see theoretical peak performance in Table 4) Figure 2showsthe resultsmeasured on both machines. It can be seen that the floating-point units of both architectures have similar performance, and that the slightly better performance of MareNostrum4 is solely due to its 5% higher CPU frequency. In contrast, the AVX512 vector unit of Skylake housed in MareNostrum4 outperforms the NEON unit of the ThunderX2 processor in Dibona-TX2 by a factor of ×4.22 in single precision and ×4.11 in double precision. The fact that the vector registers of the Skylake are four times larger than those of the ThunderX2, together with the increased frequency, account for this performance difference. 4.3. Roofline Model The roofline model allows us to visualize the hardware limitations of different computational systems and characterize the workload of computational kernels [27]. The model plots the sustained performance Ps(I), measured in (Giga) floating-point operations per second, as a function of the arithmetic intensity I. The arithmetic intensity Iisdefined asI=W D, where Wisthenumber of floatingpointoperationsexecuted bythe application (i.e., computational workload), while Dis the number of bytes that the applicationexchangeswith themain memory(i.e., the application dataset). Ps(I) = (Fpif I > Ir Bp·Iif I≤Ir (1) Equation 1shows the theoretical formulation of the roofline model. Fpand Bpare, respectively, the peak floating-point performance (expressed in Flop/s) and the peak memory bandwidth to/from memory (expressed in Byte/s), while Ir=Fp/Bp. Using Fpas measured with the FP-µkernel in Section 4.2 and Bpas benchmarked in Section 4.1, we can, therefore, compute Ps(I)and plot it in Figure 3, where we present the roofline model of a Dibona-TX2 node and a MareNostrum4 node. An engineer knowing the arithmetic intensity and the computational performance of its application or kernel can, therefore, identify the space available for its optimization towards the maximum performance delivered by the system. Figure 3: Roofline of Dibona-TX2 (red) and MareNostrum4 (blue) Figure 3quickly reveals the different architectural configurations of the two types of node and allows the exploration of a slightly different configuration space. The redareaisindeedaconfigurationspaceenabledbythe8- channelmemorysub-systemoftheThunderX2inDibona- TX2, not reachable with current Skylake architectures that are only offering six memory channels. In contrast, the area highlighted in blue is the space where highly vectorizable codes can take advantage of the wider SIMD units on the Skylake (AVX512) compared to the narrower Armv8 NEON extension. 4.4. Interconnection Network To this point, we have characterized different architectural aspects of the ThunderX2 and Skylake processors, but multi-node scaling experiments will be affected by the interconnection network. Therefore, this section evaluates the network performance of the Dibona-TX2 cluster, which uses Mellanox Infiniband EDR (IB) interconnect. Naturally, we compare it with that of the MareNostrum4 supercomputer, which uses an Intel Omni-Path (OPA) interconnect. Figure 4shows the achieved throughput, as 5 reported by the OSU benchmarks [28] as a function of the message size of the communication. All points represent the average value of 100 repetitions of the communication. Figure 4: Bandwidth between two processes in different nodes Both networks approach the theoretical peak as the message size increases (∼95%). It seems that OPA is consistently achieving a better bandwidth than IB with message sizes over 256 KiB. The difference in bandwidth is also very noticeable at message sizes around 4 KiB and 8 KiB, where OPA almost doubles IB. It seems that the measured bandwidth of OSU in Dibona-TX2 stalls around 8 and 16 KiB but then shoots up to 10 GB/s for largermessagesizes. Thisbehavioris consistentthroughout multiple pairs of nodes and between executions. We verified that this behavior disappears if we measure the bandwidth with the ib_read_bw tool by Mellanox. As this tool exchanges data using the raw network protocol, we can only conclude that the “valley” appearing in Figure 4is caused by the OpenMPI configuration deployed by ATOS/Bull on the Dibona cluster at the moment of the tests. We repeated the tests for multiple pairs of nodes to determine if there were systematic weak links on Dibona- TX2. Figure 5shows a map where the axes represent the pair of nodes, and each cell is color-coded to indicate the bandwidth. We present the measurements for message sizes of 4 KiB. There is a recurring pattern along the diagonal where pairs of nodes have higher bandwidth. This fact is due to the network topology, as these pairs of nodes are connected to the same level-1 switch. Nodes that are topologically farther apart reach 10 % less bandwidth than neighboring nodes. 5. Application Characterization In this section, we describe the three scientific applicationsandthebenchmarkweusedtoevaluateDibona-TX2. It provides a short description and a computational characterization of the codes, together with a performance evaluation at a small scale (one or two compute nodes). The applications were selected from the set of production HPC workloads that were analyzed in the European Figure 5: Weak links in the Dibona-TX2 network, message size: 4 KiB, axis correspond to nodes, the bandwidth [MB/s] in color code project Mont-Blanc 3. They proved to be scalable on different state-of-the-art HPC architectures and represent a rangeof realscientificHPC applications. The latticeBoltzmann code (LBC) operates on a stencil-like access pattern, Tangaroa is a particle tracking code with a behavior similar to sparse-matrix applications, and Alya is a complex finite-element code that comprises several solvers with different characteristics. All of them are parallelized leveraging MPI using two-sided primitives. We also evaluate the Graph 500 benchmark with the goalof including anevaluationofanirregularcoderepresentative of emerging HPC workloads that are becoming increasingly important for diverse fields, such as social networks, biology, intelligence, and e-commerce. We invitethereaderinterestedinotherbenchmarkevaluations to complement our work with e.g., that of McIntosh-Smith et al. [8] and D. Ruiz et al. [29]. We also highlight the work of G. Ramirez-Gargallo et al. [30] for the reader interested in the performance of Dibona-TX2 under artificial intelligence workloads. For each code, we present a brief description of its purpose, internal structure, and the chosen dataset. We include a small scale evaluation of the applications and benchmark on Dibona-TX2 and MareNostrum4 nodes. It also details the performance of different compiler solutionsavailableinbothclusters: thegenericGNUsuiteand the vendor-specific alternatives (LLVM-based Arm HPC Compiler and the Intel suite). Although, in several cases, the complexity of the codes does not allow a fine-grained benchmarking, we try to provide quantitative observations of computational features to help understanding the behavior of the applications at scale. Unless otherwise noted, we use two metrics to evaluate the scalability, the elapsed time, which gives the idea 6 of the fastest option, and the efficiency, which helps to understand how well the code scale does on a given system. In this section, the efficiency Ehas been computed as follows: E=t1 ti·i, where t1is the execution time when running with one core, and tiis the execution time when running with icores. 5.1. Alya Alya [10] is a high-performance computational mechanics code developed at the Barcelona Supercomputing Center. Alya can solve different physics, including incompressible/compressible turbulent flows, solid mechanics, chemistry, particle transport, heat transfer, and electrical propagation. It is part of the Unified European Applications Benchmark Suite (UEABS) of PRACE, a set of twelve relevant codes together with their data sets, which can realistically be run on large systems. Thus Alya complies with the highest standards in HPC. Figure 6: Alya – Trace with highlight of the main computational phases In this work, we simulate an incompressible turbulent flow and the transport of Lagrangian particles with Alya. In particular, we simulate the air through the human respiratory system and the transport of the particles during rapid inhalation [31]. In Figure 6, we can see a trace of a one-time step of the respiratory simulation with Alya. The time is represented on the x-axis, and on the y-axis are the different MPIprocesses. Thecolorindicatesthe phasethatisbeing executed, and white corresponds to MPI communication. The matrix assembly, algebraic solver, and subgrid scale phases correspond to the computation of the fluid (the velocity of the air), and the particles phase corresponds to the calculation of the transport of particles. In the trace, we highlight the most time-consuming phases. In Table 5, we quantify the percentage of the total time spent in each one. Table 5: Alya – Percentage of the total execution time and arithmetic intensity for different phases of the respiratory simulation executed with 96 MPI processes Phase % Time I Matrix assembly 40.84% 0.09 Solver1 16.13% 0.03 Solver2 4.20% 0.12 Subgrid scale 21.43% 0.07 Particles 3.37% 0.05 The rightmost column of Table 5shows the arithmetic intensity Ifor each phase (see Section 4.3). We measured the computational load Was the number of doubleprecision operations reported by the CPU counters. We also determined the data set D= (L+S)·8, where Land Sare the number of load and store instructions accessing double-precision data values (8 Bytes) measured by the hardware counters of the CPU. We show in Table 5the values of I, arithmetic intensities, of the different phases of Alya, ranging from one floating-point operation per 8 bytestransferredinthefirsttypeofsolvertoone floatingpoint operation per 32 bytes transferred in the second solver of Alya. 5.1.1. Experimental setup We performed a small scale comparison of Alya executing on one and two nodes of Dibona-TX2 and MareNostrum4. The idea is to provide a small-scale evaluation and compare at the same time hardware platforms and compiler solutions, as summarized in Table 6. Table 6: Alya – Software environment used on different clusters Platform Compiler MPI version Dibona-TX2 GNU 7.2.1 OpenMPI 2.0.2.11 Dibona-TX2 Arm 18.4.2 OpenMPI 2.0.2.14 MareNostrum4 GNU 7.2.1 OpenMPI 2.0.2.10 MareNostrum4 Intel 2018.1 OpenMPI 2.0.2.10 Production simulations can run for up to 105time steps. The results presented in this evaluation have been obtained by averaging 10 time steps, like the one shown in Figure 6. Statistical variability of the measurements is below1%, so we chosenot topollute plots witherrorbars. The mesh used in our experiments is a subject specific geometry including from the face to the seventh branch generation of the bronchopulmonary tree. The mesh is hybrid with 17.7 million elements, including prisms, tetrahedra, and pyramids. We partition the mesh with METIS [32] to distribute the elements as homogeneously as possible across different MPI processes. We inject 400,000 particles during the first time step of the simulation through the nasal orifice. 5.1.2. Node-to-node comparison In Figure 7, we report the average elapsed time of a time step when running with different compilers on both node types of the Dibona-TX2 and MareNostrum4. Comparing both platforms with each compiler family, it can be seen that MareNostrum4 shows a 30% improvement over Dibona-TX2 regardless of the compiler. Furthermore, for each platform, vendor-specific compilers deliver better performance: a 34% average improvement on Armv8 ThunderX2, and 37% on x86 Skylake. In all cases, the efficiency when going from one to two nodes is between 90% and 96%. 7 Figure 7: Alya – Performance running on one and two nodes of Dibona- TX2 and MareNostrum4 5.2. LBC LBC is a Lattice Boltzmann code written in Fortran used for advanced fluid dynamics studies, using the BGK approximation for the collision term. The version used in this work is pure-MPI with two-sided communication only. We have benchmarked the code on a single node of Dibona-TX2 and MareNostrum4 Skylake. Multi-node scalability will be presented in a later section. 5.2.1. Experimental setup The following details regarding the experimental setup are common to LBC experiments and performance data reported below. On both architectures, we used the GNU suite to compile the code and OpenMPI for communication across nodes. Besides, we used compilers by the processor vendor, i.e., Arm and Intel, respectively, to evaluate the impact of the compiler on the performance of the code. Details of the software stack can be found in Table 7. Table 7: LBC – Software environment used on clusters Platform Compiler MPI version Dibona-TX2 GNU 7.2.1 OpenMPI 2.0.2.14 Dibona-TX2 Arm 19.1 OpenMPI 2.0.2.14 MareNostrum4 GNU 7.2.0 OpenMPI 3.1.1 MareNostrum4 Intel 2018.1 OpenMPI 3.1.1 Each data point in this section’s figures corresponds to the average of over at least 30 time measurements. To get a representative result, at most 10 runs were done within the same job, and jobs were distributed over two or more days. We also calculated the standard deviation of the sample as error estimates. However, we do not plot error bars, as they are usually small and would only crowd the figures. In cases were errors are substantial, we mention this fact in the text. In the Lattice Boltzmann community, the underlying grid cells are often referred to as lattice elements. The usual metric for performance is the number of lattice updates per time interval measured in units of MLUP/s (mega lattice updates per second, 106lattice updates per second). This metric is reported by the application at the end of the run. Note that LBC disregards the initialization phase and other overhead when reporting performance. For comparison purposes, the problem size of all experiments is chosen such that the number of lattice elements per core present on the node is nC= (256 × 256 ×32). The problem sizes assigned to each node is nN=nC·C, where Cisthenumberofcoresper node. We call pNthe 3-dimensional domain decomposition of C that represents the MPI ranks assigned to each node. The memory requirement is roughly proportional to the total number of lattice elements (including one ghost cell at each boundary); each lattice elements stores 41 doubleprecision float numbers. Table 8shows the domain configurations for each of the cluster. The code was run for 10 time steps without any intermediateoutput. Thisprovedsufficientlylargeforaccurate time measurements. 5.2.2. Node-to-node comparison To compare the computing capabilities of the ThunderX2 and Skylake processors, we executed the pure- MPI version of LBC on single nodes of Dibona-TX2 and MareNostrum4. Figure 8: LBC – Strong scaling on Dibona-TX2 and MareNostrum4, with execution time as a function of number of cores Figure 9: LBC – Strong scaling on Dibona-TX2 and MareNostrum4, with parallel efficiency as a function of number of cores 8 Table 8: Node-to-node comparison for LBC on Dibona-TX2 and MareNostrum4 nodes Dibona-TX2 MareNostrum4 Cores per node, C64 48 Domain size per node, nN512×512×512 512×512×384 Domain decomposition, pN2×2×16 2×2×12 Memory requirements 41 GiB 31 GiB Compiler GNU Arm GNU Intel Performance [MLUP/s]265.4±3.0 196.1±1.0 277.7±1.4 279.8±1.4 We assume that the MPI communication within a single node will have little impact on the performance of the code. Single-core runs were disregarded, as one core is not sufficient to saturate the available memory bandwidth on either system, and such performance measurements would overestimate and obfuscate the real application performance in production runs. The performance of single-node runs is reported in Table 8in terms of the application-specific metric. In addition, we performed a strong scaling experiment on a single node of Dibona-TX2 and MareNostrum4. MPI ranks have been placed to spread evenly across NUMA domains to best utilize the available memory bandwidth. The execution time is illustrated in Figure 8, while the efficiency is shown in Figure 9. With the GNU compiler, the performance on the Dibona-TX2 is 4% lower than on the MareNostrum4 node, even though the number of cores per compute node is roughly 33 %higher. This indicates that, proportionally, Skylake cores outperform ThunderX2 cores. We also note that the performance of the code heavily depends on the maturity of the compiler technology used. On Dibona-TX2, the performancewiththe Armcompiler is roughly 25 %lower than the performance obtained with the GNU compiler (see Table 8). We can only explain this performance degradation with the maturity of the Arm compiler technology since we have seen thatthevendor-specific compilercanimprovethe performanceofotherapplications(seee.g.,AlyainSection5.1.2). On MareNostrum4, the performance with the GNU compiler and with the Intel compiler is practically identical. All versions of the code show an initial super-scalar behavior up to roughly 8 cores. This is because the memory size of the working set per core decreases with an increasing core count so cache reuse increases. However, this effect is countered, as the effective memory bandwidth per core saturates at larger core counts. While both kinds of nodes have a similar core count, the ThunderX2 architecture on Dibona-TX2 retains higher strong scaling efficiency. Again, we see slight differences amongst compilers, in particular, the Intel compiler produces code that scales better at larger core counts of MareNostrum4 nodes than the GNU compiler. For the Arm compiler, we observe high efficiencies even up to the full core count. This, however, is an artifact of the low performance of this particular version: due to the low compute speed, there is never sufficient pressure on the memory systems to feel the limited effective bandwidth. Overall, however, our results suggest that the ThunderX2 memory system of the Dibona-TX2 cluster is relatively better suited for memory bound workloads such as LBC. 5.3. Tangaroa Tangaroa is a C++ application that simulates fluid dynamics in a way suitable for computer animation [18,19]. Its results are not meant to be physically correct but only visually plausible. The simulation progresses by analyzing the behavior of a large amount of particles in discrete time steps. The 3D space that contains the particles is partitioned to allow parallel execution of the simulation. Particle position, velocity, and other properties are calculated with single-precision floating-point arithmetic (4 Bytes). 5.3.1. Experimental setup The data extracted from the Tangaroa executions considers the actual simulation of the particles as the region of interest; job setup and data allocation times are not taken into account. Tangaroa tries to hide communication as much as possible; therefore, computation is veryintenseinthisregion. Single-nodeexperimentswere made on dedicated nodes, meaning that intra-node MPI communication was not perturbed by traffic from other applications. Moreover, since execution times range from tens of minutes to hours, the perturbation from the OS is considered negligible. Each data point shown is the average of five independent executions. In all experiments, the I/O operations were disabled to avoid interference from different network file system technologies and thus improve the accuracy of the measurements. The dataset represents a fairly even distribution of around 12 million particles in a box-shaped region. The internalrepresentationoftheseparticlesisatleast1.5GB; there are other data structures whose size is not directly proportional to the number of particles. The size of the dataset is enough to justify using several hundred processes, although a larger one would allow better scalability. Table 9reports the software configuration used for the evaluation of Tangaroa. 9 7.3. Tangaroa A set of strong-scaling experiments of Tangaroa were made using GCC as the compiler in both platforms, Dibona-TX2 and MareNostrum4. The execution times of these experiments are shown in Figure 20, while the parallel efficiency is depicted in Figure 21. The base times of the efficiency plot for the single node executions appear in Table 10. Figure20: Tangaroa–StrongscalabilityoftheexecutiontimeonDibona- TX2 and MareNostrum4 Figure 21: Tangaroa – Parallel efficiency on Dibona-TX2 and MareNostrum4 Itisapparentthat the scalabilityisfarbetterin Dibona- TX2. Note that the efficiency of the 16 node execution in MareNostrum4 is close to 50%, despite the nodes and the networkbeingsuperiortoDibona-TX2. The reasonbehind this effect is twofold. First, the size of the problem is not big enough for such a large number of processes, leading to computation bursts in the range of 100 ms. Second, since MareNostrum4 is a production machine, network traffic is significantly higher than in Dibona-TX2. As a consequence, the transmission delays are in the same order of magnitude as the computation bursts, and Tangaroa is less capable of hiding them. 7.4. Graph 500 For the scalability study with Graph 500, we use a size s= 27, corresponding to a number of vertices v= 227. All the numbers reported are the duration of one BFS operation averaging 64 measurements, as reported by the application. Figure 22: Graph 500– Strong scalability of the execution time on Dibona-TX2 and MareNostrum4, power of 2 In Figure 22, we can see the average elapsed time to perform one BFS when running with a number of MPI ranks that is a power of 2. We can observe that up to 8 nodes Dibona-TX2 is faster than MareNostrum4. In both cases, the vendor-specific compiler is the one that delivers the best performance, but the performance gain with respect to GNU is below 10% in all the cases. Although Dibona outperformsMareNostrum4in allthecases, thedistance between them decreases as the number of nodes increase, being equal for 8 nodes. Figure 23: Graph 500– Parallel efficiency on Dibona-TX2 and MareNostrum4, power of 2 Figure 23 shows the parallel efficiency when running with a binary optimized to run in a number of MPI ranks power of 2. We can see that all the parallel efficiencies drop from 1 to 2 nodes. This confirms that Graph 500 is network intensive because the parallel efficiency drops when the communications are done outside the node. In Figure 24, we show the execution time of one BFS when using a binary compiled to run in a non-power of 2 number of MPI processes. In this case, MareNostrum4 outperforms Dibona. This difference in performance can be explained because, as we have seen in the previous 16 Figure 24: Graph 500– Strong scalability of the execution time on Dibona-TX2 and MareNostrum4, not power of 2 sections,thecompilersatMareNostrum4canobtainmore performance fromthe non-optimizedversionof the code. Itisimportanttonoticethatinthiscase,bothclusterscan use all the cores of each compute node. Figure 25: Graph 500– Parallel efficiency on Dibona-TX2 and MareNostrum4, not power of 2 Figure 25 depicts the parallel efficiency of the same executions. We can see that the big drop in performance when communicating outside a compute node is still present, meaning that, in this version, the communications are also an important factor. 8. Scalability Projections 8.1. Graph 500 Communication Study For analyzing further the behavior at scale of the Graph 500 benchmark, we measured tMP I , the time spent on the MPI calls, and tCal, the time spent performing the localBFSoperations. The goalistostudyhowtMP I evolves, adding more processes, and to extrapolate its impact at scale. Due to the irregular nature of the benchmark, we refined our model differentiating tMP I into tCom, which is the time during which actual communications happen, and tLB, which is the time due to the load balance across different MPI processes. The total execution time tT OT can be therefore expressed as tT OT =tCal +tMP I =tCal +tCom +tLB .(2) The additive nature of Equation 2allow us to study the ratio of each contribution with the total time: tCal tT OT +tCom tT OT +tLB tT OT = 1.(3) Figure 26: Graph 500– MPI time on Dibona-TX2 and MareNostrum4, power of 2, vendor compilers In Figure 26, we represent with points the percentage of time measured on the Dibona-TX2 and MareNostrum4 whenrunningGraph500withscale27intheconfiguration with power of 2 MPI processes. Since we are interested in scalability, we studiedthe percentage of timespent in the communication (corresponding to tCom) and the percentage of time spent due to load balance (corresponding to tLB). The solid lines are linear fits of those two contributions to tMP I . We interpolate the data of load balance with a linear function tLB/tT OT =a·p+b, where pis the number of MPI processes, and aand bare the two parameters to fit. The rate of time spent in communication is modeled as a constant function tCom/tT OT =c. In Table 15, we present the parameters resulting from the fit. Table15: Summary of a,b, and cparametersformodeling tM P I inGraph 500 Dibona-TX2 MareNostrum4 a = 1.26 ±0.13 a= 0.31 ±0.06 b = 3.86 ±0.48 b= 3.29 ±0.59 c = 19.59 ±0.62 c= 26.77 ±0.83 The first observation is related to the trends visible in Figure 26. The factor that limits the scalability is the load balance across MPI processes that, in our projections, should reach a critical point already with ∼70 compute nodes on Dibona-TX2 and with ∼270 nodes in MareNostrum4. 17 The second remark is related to the percentage of time spent in performing the actual communication. This contribution seems to be 30% higher on MareNostrum4 than on Dibona-TX2. This is caused by the different technologies used to interconnect the nodes on the clusters and thenetworkcongestionofMareNostrum4(whichisanoperational production cluster). 8.2. Speedup Projections In this section, we use the scalability data presented in Section 7for each application to project the behavior at scale of the two clusters under study. The goal is to clarify the behavior at scale of Dibona under HPC workloads. For projecting the scalability, we study the speedup with respect to the performance of a single node of each cluster. In the case of strong scalability, we use Amdahl’s law. The speedup sas a function of the number of processes pis computed as s(p) = 1 (1 −a) + a p +b(4) In the case of weak scalability, we use Gustafson’s law. The speedup sas a function of the number of processes pis computed as s(p) = (1 −a) + a·p(5) In both equations, ais a parameter that expresses the time rate that is taking advantage of the parallelization. For the strong scaling, we also take into account a parameter b, which represents an approximation of the parallelization overhead. For Alya, Tangaroa, and Graph 500, we fit the strong scalability data presented in Section 7with Equation 4, while for LBC we project the behavior at scale using Equation5. Thisallowsustofindthevaluesofa. InTable16, we report the values of afor each application when running on Dibona-TX2 and MareNostrum4 using the GNU Compiler Suite and the proprietary compilers. Figure 27: Alya – Speedup projection of Dibona-TX2 and MareNostrum4 using different compilers Figure 28: LBC – Speedup projection of Dibona-TX2 and MareNostrum4 using different compilers Figure 29: Tangaroa – Speedup projection of Dibona-TX2 and MareNostrum4 using different compilers Figure 30: Graph 500 (power of 2) – Speedup projection of Dibona-TX2 and MareNostrum4 using different compilers 18 Table 16: Summary of aand bparameters for projection of scalability Dibona-TX2 MareNostrum4 Compiler GNU Arm GNU Intel Alya a = 0.960 ±0.004 0.947 ±0.010 0.892 ±0.023 0.954 ±0.006 b = −0.685 ±0.395 −0.890 ±0.772 −0.634 ±0.685 −0.674 ±0.505 LBC a = 0.817 ±0.027 N/A 0.839 ±0.014 N/A Tangaroa a = 0.989 ±0.002 N/A 0.946 ±0.004 N/A b = 0.162 ±0.149 N/A −0.324 ±0.173 N/A Graph 500 a = 0.918 ±0.013 0.905 ±0.014 0.968 ±0.006 0.970 ±0.003 b = −0.554 ±0.174 −0.604 ±0.176 −1.252 ±0.330 −0.950 ±0.157 In Figures 27,28,29, and 30, we present the projections at the scale of the four applications. Points represent real measured data, while solid lines are projections obtained fitting the measurements with Equation 4for Alya, Tangaroa, and Graph 500, and with Equation 5for LBC. Looking at the strong scalability, we expect that the slope of the scalability curve becomes increasingly flat for all applications. This is an inherent problem of splitting the workload across an increasing number of computational units. With our study, however, we demonstrate that Dibona-TX2 allows one to reach a scalability similar to MareNostrum4, even when projecting our measurements at a larger scale. This means that the Dibona- TX2 technology can be considered as good as the one of MareNostrum4 for large HPC clusters, besides the microarchitectural differences. 9. Conclusions Inthispaper, we analyzedthe performanceof thelatest Arm-basedCPU targetingthe HPCmarket, Marvell (former Cavium) ThunderX2. These processors were available to us in the Dibona cluster, developed within the European project, Mont-Blanc 3. For comparison, we performed the same experiments in state-of-the-art x86 Skylake processors in the same machine, as well as in the Tier-0 supercomputer MareNostrum4. 9.1. CPU and system architecture We begin the analysis focusing on pure microbenchmarking. Perhaps the most salient fact about the ThunderX2 processor is the number of cores it integrates. With 32 cores per socket, a compute node of the Dibona- TX2 cluster has 33% more than a Skylake-based node in MareNostrum4, our baseline machine, although their clock frequency is 5% less than those in the Skylake running at 2.1 GHz. Attending to the memory subsystem, the memory installed on the Dibona-TX2 nodes is DDR4-2666, which is 17% slower than the DDR4-3200 coupled with the Skylake CPUs in MareNostrum4. However, our experiments show that the ThunderX2, with its eight memory channels per socket, gives a 25% higher memory bandwidth than the Skylake, which only offers six channels. The raw floating-point performance has been studied with a synthetic benchmark in Section 4.2. Figure 2 shows that both processors have scalar floating-point units (FPUs) of similar characteristics. We have shown that the slight difference of 5%in scalar floating-point performance canbeexplainedbydifferent clock frequencies. TheperformanceoftheIntelAVX512SIMDunit isfour timeshigherthanthe performanceoftheNEONSIMDunit found in the ThunderX2 CPU. Again, this is expected as the AVX512 unit is four times wider than the 128-bit NEON SIMD unit. Summarizing, the ThunderX2 processors have more cores and memory channels than the Skylake, but slower clock and memory, and substantially shorter SIMD units. 9.2. Software stack maturity An important aspect when considering new architectures, is the maturity of the software stack. This includes not only the compiler but also libraries enabling parallel programming, such as MPI. Our experiments show that, in general, the software stack provided by Arm has a high maturity level, comparable to that of the Intel tools and libraries. On the other side, the Arm support offered by the open-source stack is on par with Intel, although both usually show less (∼30%) performance than the vendorprovided stacks. This confirms the trend highlighted by F. Banchelli et al. in [33]. 9.3. HPC applications performance and scalability While in the first part of the paper we focus on pure micro-benchmarking, in the second part we analyze the performance of three complex scientific applications at scale: Alya, LBC, and Tangaroa. Alya is the most complex code of the set. It is a multi-physics solver based on finite-element methods. LBC is an implementation of the Lattice Boltzmann method of solving fluid dynamics, showing a stencil-like data access pattern. Tangaroa is a particle tracking code with single-precision arithmetic. WealsocomplementourstudyincludingtheGraph500 benchmark, as a representative of emerging workloads 19 that appear to be increasingly relevant in modern datacenters. The four codes were executed within a single node of each machine. The performance of the Dibona-TX2 nodes showed to be lower than the Skylake-based compute nodes, ranging from ∼4% slower for LBC, to ∼30% and ∼40% slower for Alya and Tangaroa, respectively, which means that the extra number of cores and memory channelsoftheThunderX2CPUdoesnotentirelyovercomethe limitations on the SIMD units. However, further experiments within a single node showed that the applications scaled better in Dibona-TX2 than in MareNostrum4. This can be attributed to the presence of two extra memory channels and a different cache micro-architecture. Concerning scalability across nodes, the strong scaling experiment with Tangaroa on Dibona-TX2 gave scaling efficiencies of roughly 85 %, which is substantially higher than on MareNostrum4, where the efficiency drops to approximately 55 %. Note that as expected from a strong scaling experiment, the problem size becomes progressively smaller, and the relative importance of MPI communication time increases. This explains the gradual decrease in scaling efficiency. Contrary to Dibona-TX2, however, MareNostrum4 is a production cluster with an extensive diameter network and a high number of users active at any time. Thus, network traffic by other users will, therefore, have a much higher effect MPI communication time on MareNostrum4 than on Dibona-TX2, which explains the worse scaling. However, for Alya, and more soforLBC,theMPIcommunicationisnotasperformancecritical as for Tangaroa, and the scaling efficiencies observedonbothplatformsare almostidenticalforLBC and are within 10% of each other, respectively. Our experimentswithsyntheticMPIbandwidthbenchmark(seeSection 4.4), however, show that at the time of our data acquisition, Dibona-TX2’s OpenMPI was misconfigured and reached a lower bandwidth for intermediate message sizes than expected from raw low-level network benchmarks. This shows that the Infiniband interconnection implementedinDibona-TX2isatthelevelof state-of-the- art HPC systems, even if the tuning of the OpenMPI stack leveraging the network is not optimal. Another important conclusion resulting from the study of the Graph 500 benchmark is that for irregular workloads, the most important limiting factor at scale is the load balance across MPI processes, more than the communication overhead. This is clearly visible in Figure 26. 9.4. Energy considerations Knowing the importance that energy efficiency has in modern HPC systems, we also study the energy consumption of the three applications. Since the Dibona cluster offered a small amount of Skylake nodes (called Dibona- X86) with equivalent energy measuring capabilities than the Dibona-TX2 nodes, our measurements allow for a fair comparison of both platforms. As expected, our energy measurements have been strongly affected by the performance of the applications. Therefore, the maturity of the software stack has a substantial impact on the energy consumption, as vendorspecific tools deliver not only better performance but also lower energy-to-solution. In this sense, we consider the example of Alya as a clear, successful story for the energy efficiency and the scalability of Arm systems on a complex production code. For instance, we showed that the same simulation could be carried out on Dibona- TX2 saving 30% of the energy and running 10% slower compared to Dibona-X86 nodes. The tests of Graph 500 highlight another success story for the energy efficiency of Dibona-TX2, which also takes advantage of the fact that its node configuration offers a power of 2 number of cores. In general, we have observed that the energy- to-solutionforthedifferentapplicationsisapproximately the same on both platforms. However, if we consider the energy-delay-product, the betterperformance of Dibona- X86 results also in a better efficiency, when compared to Dibona-TX2. 9.5. Lessons learned Considering the priorities of HPC-facility managers, we can conclude that ThunderX2 is a great leap forward for Arm architectures in this field. However, the energy efficiency is still behind the Skylake architecture delivered by Intel for pure HPC workloads. Thinking about the needs of domain scientists and HPC developers, the ThunderX2 processor is a platform worth considering as the maturity of the different software stacks is comparable to the state-of-the-art options available in Intel platforms. Programmability and stability of Dibona-TX2 nodes have been proved at the level of other production systems. For computer architects, this study also offers some interesting insights. For instance, the importance of memory channels, as they can overcome the limitations of a slower clock and memory speeds. However, it also points out the demand for vector operations from current scientific applications, which means that improving the size of SIMD units will bring a significant advantage. Globally, we think that the architectural point explored with the ThunderX2 CPU is extremely relevant for the research of a path towards Exascale. In our view, it shows that, for complex applications such as Alya, the performancepenaltiesintroducedbyasmallerSIMDunitcanbe compensated by a higher memory bandwidth, and, more generally, it allows programmers and integrators to explore an innovative architectural design point that is able todeliver decentperformancein a competitivepowerenvelope. We expect the situation will soon change when the new Scalable Vector Extension by Arm [34] is implemented in some real hardware. However, we will reserve this discussion for future work. 20 Acknowledgments The authors thank the support team of Dibona operating at ATOS/Bull. This work is partially supported by the Spanish Government through Programa Severo Ochoa (SEV-2015-0493), the Spanish Ministry of Science and Technology project (TIN2015-65316-P), the Generalitat de Catalunya (2017-SGR-1414), the European Community’s Seventh Framework Programme [FP7/2007-2013] and Horizon 2020 under the Mont-Blanc projects (grant agreements n. 288777, 610402 and 671697), the European POP2 Center of Excellence (grant agreement n. 824080), and the Human Brain Project SGA2 (grant agreement n. 785907). References [1] N. Rajovic, A.Rico, N.Puzovic, C. Adeniyi-Jones, A.Ramirez, Tibidabo: Making the case for an ARM-based HPC system, Future Generation Computer Systems 36 (2014) 322–334. [2] N. Rajovic, P. M. Carpenter, I. Gelado, N. Puzovic, A. Ramirez, M. Valero, Supercomputing with commodity CPUs: Are mobile SoCs ready for HPC?, in: Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis, ACM, 2013, p. 40. [3] N. Rajovic, A. Rico, F. Mantovani, D. Ruiz, J. O. Vilarrubi, C. Gomez, L. Backes, D. Nieto, H. Servat, X. Martorell, et al., The Mont-Blanc prototype: An alternative approach for HPC systems, in: SC’16: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, IEEE, 2016, pp. 444– 455. [4] G. Oyarzun, R. Borrell, A. Gorobets, F. Mantovani, A. Oliva, Efficient CFD code implementation for the ARM-based Mont-Blanc architecture, Future generation computer systems 79 (2018) 786–796. [5] D. Cesini, E. Corni, A. Falabella, A. Ferraro, L. Lama, L. Morganti, E. Calore, S. F. Schifano, M. Michelotto, R. Alfieri, et al., The INFN COSA Project: Low-Power Computing and Storage, Advances in Parallel Computing 32 (2018) 770–779. [6] E. Calore, F. Mantovani, D. Ruiz, Advanced performance analysis of HPC workloads on Cavium ThunderX, in: 2018 International Conference on High Performance Computing & Simulation (HPCS), IEEE, 2018, pp. 375–382. [7] M. Puzović, S. Manne, S. GalOn, M. Ono, Quantifying energy use in dense shared memory HPC node, in: Proceedings of the 4th International Workshop on Energy Efficient Supercomputing, IEEE Press, 2016, pp. 16–23. [8] S. McIntosh-Smith, J. Price, T. Deakin, A. Poenaru, A performance analysis of the first generation of HPC-optimized ARM processors, Concurrency and Computation: Practice and Experience (2018) e5110. [9] Great Western 4 Consortium, https://gw4.ac.uk/ . [10] M. Vázquez, G. Houzeaux, S. Koric, A. Artigues, J. Aguado-Sierra, R. Arís, D. Mira, H. Calmet, F. Cucchietti, H. Owen, et al., Alya: Multiphysics engineering simulation toward exascale, Journal of Computational Science 14 (2016) 15–27. [11] M. Garcia-Gasulla, M. Josep-Fabrego, B. Eguzkitza, F. Mantovani, Computational fluid and particle dynamics simulations for respiratory system: Runtime optimization on an Arm cluster, in: ICPP’18 Proceedings of the 47th International Conference on Parallel Processing Companion, Association for Computing Machinery (ACM), 2018. [12] M. Garcia-Gasulla, F. Mantovani, M. Josep-Fabrego, B. Eguzkitza, G. Houzeaux, Runtime mechanisms to survive new HPC architectures: a use case in human respiratory simulations, The International Journal of High Performance Computing Applications 34 (1) (2020) 42–56. [13] J. Gracia, C. Niethammer, M. Hasert, S. Brinkmann, R. Keller, C. W. Glass, Hybrid MPI/StarSs – A case study, in: Proceedings of the 2012 IEEE10thInternationalSymposiumon ParallelandDistributedProcessing with Applications, ISPA ’12, IEEE Computer Society, Washington, DC, USA, 2012, pp. 48–55. [14] P. L. Bhatnagar, E. P. Gross, M. Krook, A model for collision processes in gases. I. Small amplitude processes in charged and neutral onecomponent systems, Physical review 94 (3) (1954) 511. [15] L. Biferale, F. Mantovani, M. Sbragaglia, A. Scagliarini, F. Toschi, R. Tripiccione, Second-order closure in stratified turbulence: Simulations and modeling of bulk and entrainment regions, Physical Review E 84 (1) (2011) 016305. [16] F. Mantovani, M. Pivanti, S. Schifano, R. Tripiccione, Exploiting parallelism in many-core architectures: Lattice Boltzmann models as a test case, in: Journal of Physics: Conference Series, Vol. 454, IOP Publishing, 2013, p. 012015. [17] E. Calore, A. Gabbana, S. F. Schifano, R. Tripiccione, Optimization of lattice Boltzmann simulations on heterogeneous computers, The International Journal of High Performance Computing Applications 33 (1) (2019) 124–139. [18] M. Huber, S. Reinhardt, D. Weiskopf, B. Eberhardt, Evaluation of Surface Tension Models for SPH-Based Fluid Animations Using a Benchmark Test, in: VRIPHYS, 2015, pp. 41–50. [19] S. Reinhardt, M. Huber, B. Eberhardt, D. Weiskopf, Fully asynchronous SPH simulation, in: Proceedings of the ACM SIGGRAPH / Eurographics Symposium on Computer Animation, SCA ’17, ACM, New York, NY, USA, 2017, pp. 2:1–2:10. [20] R. C. Murphy, K. B. Wheeler, B. W. Barrett, J. A. Ang, Introducing the graph 500, Cray Users Group (CUG) 19 (2010) 45–74. [21] F. Checconi, F. Petrini, Massive data analytics: the graph 500 on ibm blue gene/q, IBM Journal of Research and Development 57 (1/2) (2013) 10–1. [22] M. Radulovic, K. Asifuzzaman, D. Zivanovic, N. Rajovic, G. C. de Verdiére, D. Pleiter, M. Marazakisl, N. Kallimanis, P. Carpenter, P. Radojković, et al., Mainstream vs. Emerging HPC: Metrics, Trade- Offs and Lessons Learned, in: 2018 30th International Symposium on Computer Architecture and High Performance Computing (SBAC-PAD), IEEE, 2018, pp. 250–257. [23] M. Jarus, S. Varrette, A. Oleksiak, P. Bouvry, Performance evaluation and energy efficiency of high-density HPC platforms based on Intel, AMD and ARM processors, in: European Conference on Energy Efficiency in Large Scale Distributed Systems, Springer, 2013, pp. 182–200. [24] D. D’Agostino, A. Quarati, A. Clematis, L. Morganti, E. Corni, V. Giansanti, D. Cesini, I. Merelli, SoC-based computing infrastructures for scientific applications and commercial services: Performance and economic evaluations, Future Generation Computer Systems. [25] F. Banchelli, M. Garcia, M. Josep, F. Mantovani, J. Morillo, K. Peiro, G. Ramirez, X. Teruel, G. Valenzano, J. W. Weloli, J. Gracia, A. Lumi, D. Ganellari, P. Schiffmann, MB3 D6.9 – Performance analysis of applications and mini-applications and benchmarking on the project test platforms, Tech. rep., version 1.0 (2019). URL http://bit.ly/mb3-dibona-apps [26] J. D. McCalpin, et al., Memory bandwidth and machine balance in current high performance computers, IEEE computer society technical committee on computer architecture (TCCA) newsletter 1995 (1995) 19–25. [27] G. Ofenbeck, R. Steinmann, V. Caparros, D. G. Spampinato, M. Püschel, Applying the roofline model, in: 2014 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), IEEE, 2014, pp. 76–85. [28] J. Liu, B. Chandrasekaran, J. Wu, W. Jiang, S. Kini, W. Yu, D. Buntinas, P. Wyckoff, D. K. Panda, Performance comparison of MPI implementations over InfiniBand, Myrinet and Quadrics, in: SC’03: Proceedings of the 2003 ACM/IEEE Conference on Supercomputing, IEEE, 2003, pp. 58–58. [29] D. Ruiz, F. Spiga, M. Casas, M. Garcia-Gasulla, F. Mantovani, Open- Source Shared Memory Implementation of the HPCG Benchmark: Analysis, Improvements and Evaluation on Cavium ThunderX2, in: International Conference on High Performance Computing & Simulation (HPCS), IEEE, 2019, pp. 1–8. 21 [30] G. Ramirez-Gargallo, M. Garcia-Gasulla, F. Mantovani, TensorFlow on state-of-the-art HPC clusters: a machine learning use case, in: 2019 19thIEEE/ACMInternationalSymposiumon Cluster, Cloud and Grid Computing (CCGRID), IEEE, 2019, pp. 1–8. [31] H. Calmet, A. M.Gambaruto, A.J. Bates, M. Vázquez, G. Houzeaux, D. J. Doorly, Large-scale CFD simulations of the transitional and turbulent regime for the large human airways during rapid inhalation, Computers in biology and medicine 69 (2016) 166–180. [32] Karypis G., Kumar V., MeTis: Unstructured Graph Partitioning and Sparse Matrix Ordering System, http://www.cs.umn.edu/ metis, University of Minnesota, Minneapolis, MN (2009). [33] F.Banchelli, D.Ruiz, Y.H.X.Lin, F.Mantovani,IsArmsoftwareecosystem ready for HPC?, in: SC17: International Conference for High Performance Computing, Networking, Storage and Analysis, 2017. [34] A. Rico, J. A. Joao, C. Adeniyi-Jones, E. Van Hensbergen, ARM HPC ecosystem and the reemergence of vectors, in: Proceedings of the Computing Frontiers Conference, ACM, 2017, pp. 329–334. 22