arXiv:2608.28076cs.MSAug 2026

Manuscript Offprint

arXiv:2608.28076

Performance Evaluation of Fast Fourier Transforms on Emerging RISC-V Hardware with Vector Extension Support

Daniel Seibel, Kaveh Haghighi Mood, Jayesh Badwaik, Prateek Chawla, Stepan Nassyr, Andreas Herten

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Daniel Seibel[0000-0003-3833-2089], Kaveh Haghighi Mood[0000-0002-8578-4961], Jayesh Badwaik[0000-0002-5252-8179], Prateek Chawla[0000-0001-8895-2791], Stepan Nassyr[0000-0002-0035-244X], and Andreas Herten[0000-0002-7150-2505]

Jülich Supercomputing Centre, Jülich, Germany

{k.haghighi.mood,d.seibel}@fz-juelich.de

Abstract. This manuscript presents a performance evaluation of Fast Fourier Transform (FFT) implementations on emerging processors supporting the RISC-V Vector Extension (RVV 1.0). By introducing juFFTe, a light-weight high-performance library for discrete Fourier transforms, it is demonstrated how effective vectorization of performance-critical FFT kernels can be achieved on RVV-enabled hardware. Comprehensive benchmarks on three RVV 1.0-ready processors, the SiFive X280, the X100 core of the SpacemiT K3 and the C920v2 core of the Sophon SG2044, reveal substantial performance improvements of juFFTe 1^{1} over the widely used FFTW3 library. Although RVV-enabled platforms show promising results at this stage of development, a comparison with AMD's Zen 5 architecture indicates that RISC-V needs further maturing to reach the performance of established micro-architectures.

Keywords: Fast Fourier Transform · RISC-V · HPC.

1 Introduction

The discrete Fourier transform (DFT) is one of the most fundamental mathematical operations in natural sciences and serves as the backbone of many numerical algorithms thanks to its efficient implementation in the fast Fourier transform (FFT) [31, 34]. FFTs play a crucial role in modern high performance scientific computing landscape, including the solution of partial differential equations found in computational mechanics [19], electromagnetics [26], computational chemistry [21], and physics [5, 9, 15]. Being a fundamental building block of modern HPC software stacks, it is widely recognized as one of the HPC dwarfs [6, 10] and the availability of highly-optimized FFT libraries is often considered a key indicator of the maturity of a software ecosystem targeting high performance. Besides scientific and engineering applications, the FFT is at the center of digital signal processing [22] and image processing [23].

1^{1} https://github.com/FZJ-JSC/juFFTe

D. Seibel et al.

Owing to its central role in numerous applications and libraries, optimizing FFT requires careful consideration of both algorithmic design and hardware-specific enhancements to ensure consistently high performance across platforms. In the FFT framework, large DFTs are split into smaller DFTs, which constitute the computationally intensive part of the FFT algorithm and, hence, must be carefully optimized for the target hardware. On modern CPUs and accelerators, this typically entails efficient vectorization using intrinsics or assembly tailored to the specific architecture.

RISC-V is a relatively new instruction set architecture released under a permissive license that allows for royalty-free hardware development. Although RISC-V has been primarily used in low-power devices, there are ongoing efforts to develop a new generation of chips targeted at the high-performance segment [1, 2]. To this end, the RISC-V Vector extension (RVV) [24] has been ratified in 2021 and added to the RVA23 profile [25] to enable widespread support for vectorization on future RISC-V hardware. Notable features of RVV include the concept of vector-length-agnostic code and the support of variable vector lengths, which avoids the difficulties associated with different vector lengths encountered in vector extensions like AVX and AVX512 [16]. With regards to FFT, RVV offers special movement and permutation instructions that have the potential to significantly speed up the complex multiplications and transpositions part of the performance-critical kernels.

Despite the prospect of high-performance RISC-V hardware on the horizon, currently available production FFT libraries provide only limited support for the RISC-V ecosystem. At the time of writing, only the open-source library FFTW3 [14] has been ported. This manuscript addresses this gap by introducing juFFTe, a modern Fortran library inspired by FFTE subroutines [30, 32]. juFFTe reimplements several methods described in FFTE, using modern Fortran (Fortran 90 and later), improving maintainability and usability while preserving the performance-oriented design of the original implementation. With regards to RISC-V, juFFTe leverages the RISC-V Vector Extension in version 1.0 (RVV 1.0) [24] to enable the efficient and performant vectorization of DFT kernels. As part to its modular structure, these performance-critical kernels are isolated from the remaining code, making the library as portable as possible while preserving a high level of performance and optimization. Moreover, it features a unified API and supports the popular FFTW interface to serve as a drop-in replacement.

In addition to the introduction of juFFTe, the manuscript's main contribution is the evaluation of the proposed implementation on state-of-the-art RISC-V hardware, namely the SiFive X280, the SpacemiT K3 and the Sophon SG2044, all supporting RVV 1.0. In various experiments, the performance of juFFTe is analyzed in single and multi-core scenarios and compared against those of FFTW, offering new insights about the hardware as well as vectorization with RVV. It is demonstrated that juFFTe can yield average performance improvements of up to a factor of three depending on hardware due to superior vectorization and parallelism. To the best knowledge of the authors, this represents the first in depth study of high-performance FFT on RVV 1.0 capable hardware.

The paper is structured as follows: After a brief overview of related work on FFT for RVV and a short introduction to the theory of FFT, the optimizations carried out in juFFTe for RVV are reviewed with a special focus on vectorization. This is followed by a series of benchmarks, where the performance of the library is compared against the FFTW library across different RVV-enabled systems and an x86 reference system.

References (30)