使用CUDA的混合伪谱流体turbulence框架的PDKEEPAAA并行化
GPU parallelization of a hybrid pseudospectral fluid turbulence framework using CUDA
摘要:
一个现有的混合MPI-OpenMP计划增加了基于CUDA的细粒度并行化方法的多维分布式傅立叶变换,在一个良好的特征伪谱流体湍流代码。混合计划的基础进行了审查,并提供了显示CUDA的实施的潜在好处。该方法大量利用CUDA运行时库来处理内存管理,并利用cuFFT库来计算本地FFT。其中的接口构造这些库的方式,以及用于促进平台的可移植性的ISO绑定,进行了讨论。CUDA流被实现为将数据传输与cuFFT计算重叠。使用基线求解器进行的测试表明,通过将负载卸载到基于NVLink的测试系统上的GPU,混合MPI-OpenMP求解器的总体速度显著提高。虽然批处理流方法对NVLink的好处不大,但我们看到,在基于PCIe的系统上针对最佳流数量进行调整时,性能提高了30%。据发现,强大的GPU缩放是理想的,或略好于理想,在所有情况下。除了加快基准求解器的测量,我们还考虑了其他几个求解器与不同数量的变换操作,并发现聚合速度几乎是恒定的所有求解器。
英文摘要:
An existing hybrid MPI-OpenMP scheme is augmented with a CUDA-based fine grain parallelization approach for multidimensional distributed Fourier transforms, in a well-characterized pseudospectral fluid turbulence code. Basics of the hybrid scheme are reviewed, and heuristics provided to show a potential benefit of the CUDA implementation. The method draws heavily on the CUDA runtime library to handle memory management, and on the cuFFT library for computing local FFTs. The manner in which the interfaces are constructed to these libraries, and ISO bindings utilized to facilitate platform portability, are discussed. CUDA streams are implemented to overlap data transfer with cuFFT computation. Testing with a baseline solver demonstrates significant aggregate speed-up over the hybrid MPI-OpenMP solver by offloading to GPUs on an NVLink-based test system. While the batch streamed approach provides little benefit with NVLink, we see a performance gain of 30% when tuned for the optimal number of streams on a PCIe-based system. It is found that strong GPU scaling is ideal, or slightly better than ideal, in all cases. In addition to speed-up measurements for the fiducial solver, we also consider several other solvers with different numbers of transform operations and find that aggregate speed-ups are nearly constant for all solvers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。