arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.09536cs.DCcs.MS
收藏

使用高级MPI的快速并行多维FFT

Fast parallel multidimensional FFT using advanced MPI

Lisandro Dalcin, Mikael Mortensen, David E Keyes

摘要:

我们提出了一种新的方法进行全球重新分配的多维阵列必不可少的并行快速傅立叶(或类似)变换。传统方法使用连续存储器缓冲器的标准全对全集体通信,因此需要在重新分配和变换步骤之间混合的本地数据重新对齐步骤。相反,我们的方法利用子阵列datashees和广义的所有到所有的分散/收集从MPI-2标准的通信不连续的内存缓冲区,有效地消除了本地数据重新排列的需要。尽管广义的所有对所有的通信不连续的数据通常较慢,我们的建议节省了本地工作。对于一系列强和弱缩放测试,我们发现我们的方法的整体性能与MPI-FFTW,P3 DFFT和2DECOMP&FFT等成熟的库相当,并且通常更好。我们提供了紧凑的例程实现在尽可能高的水平使用MPI绑定的C程序设计语言。这些例程适用于在任意笛卡尔处理器网格(1D板,2D铅笔,甚至更高维分解)上分解的多维数组的任何两个方向上的任何全局重新分布。高级实现使代码易于阅读、维护和最终扩展。我们的方法可以在MPI实现内部数据类型处理引擎的优化,为未来的加速。

英文摘要:

We present a new method for performing global redistributions of multidimensional arrays essential to parallel fast Fourier (or similar) transforms. Traditional methods use standard all-to-all collective communication of contiguous memory buffers, thus necessary requiring local data realignment steps intermixed in-between redistribution and transform steps. Instead, our method takes advantage of subarray datatypes and generalized all-to-all scatter/gather from the MPI-2 standard to communicate discontiguous memory buffers, effectively eliminating the need for local data realignments. Despite generalized all-to-all communication of discontiguous data being generally slower, our proposal economizes in local work. For a range of strong and weak scaling tests, we found the overall performance of our method to be on par and often better than well-established libraries like MPI-FFTW, P3DFFT, and 2DECOMP&FFT. We provide compact routines implemented at the highest possible level using the MPI bindings for the C programming language. These routines apply to any global redistribution, over any two directions of a multidimensional array, decomposed on arbitrary Cartesian processor grids (1D slabs, 2D pencils, or even higher-dimensional decompositions). The high level implementation makes the code easy to read, maintain, and eventually extend. Our approach enables for future speedups from optimizations in the internal datatype handling engines within MPI implementations.

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

↑