计算机科学 ›› 2026, Vol. 53 ›› Issue (11): 341-352.doi: 10.11896/jsjkx.251200158

• 高性能计算 • 上一篇    下一篇

基于众核架构的FFT并行算法优化研究

杨恩泽, 王庆林, 罗晓燕, 王志成, 李润华, 刘杰   

  1. 1 国防科技大学高端装备数字化软件湖南省重点实验室 长沙 410073
    2 国防科技大学并行与分布式计算全国重点实验室 长沙 410073
    3 国防科技大学计算机学院 长沙 410073
  • 收稿日期:2025-12-25 修回日期:2026-03-19 出版日期:2026-11-15 发布日期:2026-11-10
  • 通讯作者: 王庆林(wangqinglin@nudt.edu.cn)
  • 作者简介:(yangenze23@alumni.nudt.edu.cn)
  • 基金资助:
    天河高性能计算机系统优化与升级(2021YFB0300101)

Research on Optimization of Parallel FFT Algorithm Based on Many-core Architecture

YANG Enze, WANG Qinglin, LUO Xiaoyan, WANG Zhicheng, LI Runhua, LIU Jie   

  1. 1 Laboratory of Digitizing Software for Frontier Equipment,National University of Defense Technology,Changsha 410073,China
    2 National Key Laboratory of Parallel and Distributed Computing,National University of Defense Technology,Changsha 410073,China
    3 College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China
  • Received:2025-12-25 Revised:2026-03-19 Published:2026-11-15 Online:2026-11-10
  • About author:YANG Enze,born in 1993,postgra-duate.His main research interests include high performance computing and parallel computing.
    WANG Qinglin,born in 1987,Ph.D,associate research fellow.His main research interests include high perfor-mance computing and artificial intelligence.
  • Supported by:
    Optimization and Upgrading of the Tianhe High-performance Computing System(2021YFB0300101).

摘要: 快速傅里叶变换(FFT)作为离散傅里叶变换(DFT)及其逆变换(IDFT)的高效实现算法,在信号处理、人工智能等领域具有广泛应用。但是,FFT算法的优化存在蝶形变换向量化困难及访存模式复杂等难点。Cooley-Tukey FFT算法(C-T FFT)具有天然的并行特性,其分治策略与层次化的数据访问模式能够有效映射到众核处理器架构上。PEZY-SC3s是一款采用多指令流多数据流结构(Multiple Instruction Multiple Data,MIMD)的新型众核处理器,其卓越的并行计算能力和优异的能效表现在高性能计算方面表现出了巨大潜力。然而,现有研究对FFT算法在PEZY-SC3s处理器上的适配性及优化方法仍缺乏系统性探索。首次针对这款处理器的架构特性,探索了FFT的并行优化方法,提出了面向2的整数幂规模的一维FFT实现pezyFFT。实验结果表明,在输入规模为2的正整数次幂时,pezyFFT算法相较于开源FFTw库实现了平均17.59倍的 GFLOPS性能提升,平均相对误差可保证5.0×10-6的误差限。

关键词: 快速傅里叶变换, Cooley-Tukey FFT, 众核处理器, PEYZ-SC3s, 并行计算

Abstract: The Fast Fourier Transform(FFT),as an efficient implementation algorithm for the Discrete Fourier Transform(DFT) and its inverse(IDFT),is widely applied in signal processing,artificial intelligence,and other fields.However,optimizing FFT algorithms faces challenges such as difficulties in vectorizing butterfly operations and complex memory access patterns.The Cooley-Tukey FFT(C-T FFT) algorithm exhibits inherent parallelism,and its divide-and-conquer strategy with hierarchical data access patterns can be effectively mapped to many-core processor architectures.The PEZY-SC3s is a novel many-core processor based on the multiple instruction multiple data(MIMD) architecture,demonstrating exceptional parallel computing capabilities and remarkable energy efficiency for high-performance computing.However,existing research lacks systematic exploration of the adaptability and optimization methods of FFT algorithms on PEZY-SC3s processor.This paper presents pezyFFT algorithm,the first study exploring parallel optimization methods for FFT tailored to the architectural features of this processor,proposing a 1-D FFT implementation for sizes of power-of-two inputs.Experimental results show that for input sizes of power-of-two,pezyFFT achieves an average improvement of 17.59× in GFLOPS performance compared to the open-source FFTw library,while maintaining an average relative error within a tolerance of 5.0×10-6.

Key words: Fast Fourier transform, Cooley-Tukey FFT, Many-core processor, PEZY-SC3s, Parallel computing

中图分类号: 

  • TP391
[1] RAO K R,KIM D N,HWANG J J.Fast Fourier transform-algorithms and applications[M].Dordrecht,Heidelberg,London,New York:Springer Science & Business Media,2011:1-2.
[2] BUIJS H,POMERLEAU A,FOURNIER M,et al.Implementation of a fast Fourier transform(FFT) for image processing applications[J].IEEE Transactions on Acoustics,Speech,and Signal Processing,1974,22(6):420-424.
[3] LIU Z.Implementation of fast Fourier transform in IoT dataanalysis,AI and audio signal processing[C]//IET Conference Proceedings CP901.Stevenage,UK:The Institution of Enginee-ring and Technology,2024:436-440.
[4] HAZARIKA J,KHAN M T,AHAMED S R,et al.An efficient implementation approach to fft processor for spectral analysis[J].IEEE Transactions on Instrumentation and Measurement,2023,72:1-13.
[5] HECKBERT P.Fourier transforms and the fast Fouriertrans-form(FFT) algorithm[J].Computer Graphics,1995,2:15-463.
[6] COOLEY J W,TUKEY J W.An algorithm for the machine cal-culation of complex Fourier series[J].Mathematics of Computation,1965,19(90):297-301.
[7] IBRAHIM M A,AGA S.Pimacolaba:Collaborative Acceleration for FFT on Commercial Processing-In-Memory Architectures[C]//Proceedings of the International Symposium on Memory Systems.2024:13-25.
[8] HATTA N,TSUNODA S,UCHIDA K,et al.PEZY-SC3:aMIMD many-core processor for energy-efficient computing[J].arXiv:2301.07510,2022.
[9] JI Y,WANG Q,LI X,et al.A survey on tensor techniques and applications in machine learning[J].IEEE Access,2019,7:162950-162990.
[10] TOP500.Green500 List-November 2015[EB/OL].https://www.top500.org/lists/green500/2015/11/.
[11] TOP500.Green500 List-November 2027[EB/OL].https://www.top500.org/lists/green500/2017/11/.
[12] TOP500.Green500 List-November 2021[EB/OL].https://www.top500.org/lists/green500/list/2021/11/.
[13] The Khronos Group.OpenCL for Parallel Programming of He-terogeneousSystems(Version 3.0)[EB/OL].https://www.khronos.org/opencl/.
[14] SINGLETON R C.An algorithm for computing the mixed radix fast Fourier transform[J].IEEE Transactions on Audio and Electroacoustics,2003,17(2):93-103.
[15] DUHAMEL P.Implementation of “Split-radix” FFT algorithms for complex,real,and real-symmetric data[J].IEEE Transactions on Acoustics,Speech,and Signal Processing,2003,34(2):285-295.
[16] ZAPATA E L,RIVERA F F,BENAVIDES I,et al.Multidimensional fast Fourier transform into SIMD hypercubes[J].IEE Proceedings(Computers and Digital Techniques),1990,137(4):253-260.
[17] FRIGO M,JOHNSON S G.The fastest fourier transform in the west[R].Massachusetts Cambridge,1997.
[18] FRIGO M,JOHNSON S G.The design and implementation of FFTW3[J].Proceedings of the IEEE,2005,93(2):216-231.
[19] XIANG H W.Design and Implementation of FFTs Based onMulticore Vector Processor[D].Changsha:National University of Defense Technology,2014.
[20] GUO J,LIU P,YANG X Y,et al.Parallel optimization of large-point FFT on Sunway 26010[J].Journal of Zhejiang University(Engineering Science),2024,58(1):78-86.
[21] LI Z,JIA H,ZHANG Y,et al.Automatic generation of high-performance fft kernels on arm and x86 cpus[J].IEEE Transactions on Parallel and Distributed Systems,2020,31(8):1925-1941.
[22] GUO J X,ZHANG G T,ZHANG Y Q,et al.High-Performance Implementation and Optimization of Cooley-Tukey FFT Algorithm[J].Journal of Frontiers of Computer Science and Technology,2022,16(6):1304-1315.
[23] LI B,CHENG S,LIN J.tcfft:A fast half-precision fft library for nvidia tensor cores[C]//2021 IEEE International Conference on Cluster Computing(CLUSTER).IEEE,2021:1-11.
[24] ZHAO Y W,AO Y L,YANG C,et al.General Implementation of 1-D FFT on the Sunway 26010 Processor[J].Journal of Softwall,2020,31(10):3184-3196.
[25] MATSUMOTO K,NAKASATO N,HISHINUMA T.Effec-tiveness of performance tuning techniques for general matrix multiplication on the pezy-sc2[C]//Proceedings of the 10th International Symposium on Highly-Efficient Accelerators and Reconfigurable Technologies.2019:1-6.
[26] HISHINUMA T,NAKATA M.pzqd:PEZY-SC2 acceleration of double-double precision arithmetic library for high-precision BLAS[C]//International Conference on Computational & Experimental Engineering and Sciences.Cham:Springer,2019:717-736.
[27] AOYAMA T,ISHIKAWA K I,KIMURA Y,et al.First application of lattice QCD to Pezy-SC processor[J].Procedia Computer Science,2016,80:1418-1427.
[28] YOSHIFUJI N,SAKAMOTO R,NITADORI K,et al.Imple-mentation and evaluation of data-compression algorithms for irregular-grid iterative methods on the PEZY-SC processor[C]//2016 6th Workshop on Irregular Applications:Architecture and Algorithms(IA3).IEEE,2016:58-61.
[29] GUO J,LIU J,WANG Q,et al.Optimizing CSR-based SpMV on a new MIMD architecture Pezy-SC3s[C]//International Confe-rence on Algorithms and Architectures for Parallel Processing.Singapore:Springer Nature Singapore,2023:22-39.
[30] LIANG Y,WANG Q,YANG S,et al.A high-performance matrix transposition for a new MIMD architecture processor PEZY-SC3s[J].CCF Transactions on High Performance Computing,2025,7(4):1-13.
[31] PENG M,WANG Q,LIANG Y,et al.GreenB+ Tree:an energy-efficient B+ tree for MIMD architectures[J].CCF Transactions on High Performance Computing,2025,7(1):72-84.
[32] VAN LOAN C.Computational frameworks for the fast Fourier transform[M].Society for Industrial and Applied Mathematics,1992.
[33] FRIGO M,JOHNSON S G.The Benchmark Methodology ofbenchFFT[EB/OL].https://www.fftw.org/speed/method.html.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!