arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.11795cs.DCcs.NAmath.NA
收藏

最小化多维 FFT 中的通信

Minimizing communication in the multidimensional FFT

Thomas Koopman, Rob H. Bisseling

AI总结:

本文提出仅需一次 all-to-all 通信的多维 cyclic-to-cyclic 并行 FFT 算法及实现 FFTU,实验证明其在多达 4096 核上具有竞争力并获得显著加速。

摘要:

我们提出了一种用于高维快速傅里叶变换(FFT)的并行算法。该算法将 cyclic-to-cyclic(循环到循环)一维并行算法推广为 cyclic-to-cyclic 多维并行算法,同时保留仅需单次 all-to-all 通信步骤的特性。这一性质成立的约束是:对于在总计包含 N 个元素的数组上进行的 FFT,无论维数 d 或数组形状如何,我们最多使用 √N 个处理器。我们作出的唯一假设是 N 具有充分的合数性。该算法的起始和结束数据分布保持相同。我们介绍了多维实现 FFTU,它利用顺序 FFTW 程序执行其局部 FFT,并且能够处理任意维数 d。我们在超级计算机 Snellius 上使用 MPI、在多达 4096 个核心上获得了 d≤5 的实验结果,将 FFTU 与并行 FFTW 程序以及 PFFT 和 heFFTe 进行比较。结果表明,FFTU 与当前最先进技术具有竞争力,并允许使用更多处理器,同时将通信限制为单次 all-to-all 操作。对于大小为 1024³ 和 64⁵ 的数组,FFTU 在 4096 个处理器上分别实现了 149 倍和 176 倍的加速。

英文摘要:

We present a parallel algorithm for the fast Fourier transform (FFT) in higher dimensions. This algorithm generalizes the cyclic-to-cyclic one-dimensional parallel algorithm to a cyclic-to-cyclic multidimensional parallel algorithm while retaining the property of needing only a single all-to-all communication step. This is under the constraint that we use at most $\sqrt{N}$ processors for an FFT on an array with a total of $N$ elements, irrespective of the dimension $d$ or the shape of the array. The only assumption we make is that $N$ is sufficiently composite. Our algorithm starts and ends in the same data distribution. We present our multidimensional implementation FFTU which utilizes the sequential FFTW program for its local FFTs, and which can handle any dimension $d$. We obtain experimental results for $d\leq 5$ using MPI on up to 4096 cores of the supercomputer Snellius, comparing FFTU with the parallel FFTW program and with PFFT and heFFTe. These results show that FFTU is competitive with the state of the art and that it allows one to use a larger number of processors, while keeping communication limited to a single all-to-all operation. For arrays of size $1024^3$ and $64^5$, FFTU achieves a speedup of a factor 149 and 176, respectively, on 4096 processors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑