计算机科学 ›› 2026, Vol. 53 ›› Issue (11): 341-352.doi: 10.11896/jsjkx.251200158
杨恩泽, 王庆林, 罗晓燕, 王志成, 李润华, 刘杰
YANG Enze, WANG Qinglin, LUO Xiaoyan, WANG Zhicheng, LI Runhua, LIU Jie
摘要: 快速傅里叶变换(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的误差限。
中图分类号:
| [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. |
|
||