Parallel FFTW on RISC-V: A Comparative Study including OpenMP, MPI, and HPX
Preprint
Abstract
Rapid advancements in RISC-V hardware development shift the focus from low-level optimizations to higher-level parallelization. Recent RISC-V processors, such as the SOPHON SG2042, have 64 cores. RISC-V processors with core counts comparable to the SG2042, make efficient parallelization as crucial for RISC-V as the more established processors such as x86-64. In this work, we evaluate the parallel scaling of the widely used FFTW library on RISC-V for MPI and OpenMP. We compare it to a 64-core AMD EPYC 7742 CPU side by side for different types of FFTW planning. Additionally, we investigate the effect of memory optimization on RISC-V in HPX-FFT, a parallel FFT library based on the asynchronous many-task runtime HPX using an FFTW backend. We generally observe a performance delta between the x86-64 and RISC-V chips of factor eight for double-precision 2D FFT. Effective memory optimizations in HPX-FFT on x86-64 do not translate to the RISC-V chip. FFTW with MPI shows good scaling up to 64 cores on x86-64 and RISC-V regardless of planning. In contrast, FFTW with OpenMP requires measured planning on both architectures to achieve good scaling up to 64 cores. The results of our study mark an early step on the journey to large-scale parallel applications running on RISC-V.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Preparing for HPC on RISC-V: Examining Vectorization and Distributed Performance of an Astrophysics Application with HPX and Kokkos2024
- Experiences Porting Shared and Distributed Applications to Asynchronous Tasks: A Multidimensional FFT Case-Study2024
- Is RISC-V ready for HPC prime-time: Evaluating the 64-core Sophon SG2042 RISC-V CPU2023
- Evaluating HPX and Kokkos on RISC-V using an astrophysics application Octo-Tiger2023
- Generating Fast FFT Kernels on CPUs via FFT-Specific Intrinsics2023
- Acceleration with long vector architectures: Implementation and evaluation of the FFT kernel on NEC SX‐Aurora and RISC‐V vector extensionConcurrency and Computation: Practice and Experience, 2022
- octo-tiger: a new, 3D hydrodynamic code for stellar mergers that uses hpx parallelizationMonthly Notices of the Royal Astronomical Society, 2021
- P3DFFT: A Framework for Parallel Computations of Fourier Transforms in Three DimensionsSIAM Journal on Scientific Computing, 2012
- How to mesh up Ewald sums. I. A theoretical and numerical comparison of various particle mesh routinesThe Journal of Chemical Physics, 1998
- OpenMP: an industry standard API for shared-memory programmingIEEE Computational Science and Engineering, 1998