在AMD和NVIDIA GPU上对MFC可压缩多相流求解器进行OpenACC卸载
OpenACC offloading of the MFC compressible multiphase flow solver on AMD and NVIDIA GPUs
AI总结:
本研究针对可压缩多相流求解器的GPU加速需求,通过OpenACC结合多种编译优化、数组打包、元编程内联等技术,在NVIDIA和AMD GPU上实现显著加速,并验证了优异的弱扩展与强扩展效率。
摘要:
GPU是最新一代超级计算机的核心。我们通过OpenACC在NVIDIA和AMD Instinct GPU上高效加速了一款可压缩多相流求解器。优化通过指定编译指示子句“gang vector”和“collapse”实现。通过将用户自定义类型打包为合并的多维数组,以及借助元编程实现手动内联,进一步获得了6倍和10倍的加速比。额外的优化在Frontier上实现了数组打包7倍的加速比,以及选定内核30倍的加速比。当扩展到Summit的50%和Frontier的95%时,观测到的弱扩展效率分别为97%和95%。在V100和MI250X硬件上将设备数量增加8倍和16倍时,观测到的强扩展效率分别为84%和81%。当使用支持GPU的MPI进行通信时,将设备数量增加16倍的情况下,AMD MI250X的强扩展效率提升至92%。
英文摘要:
GPUs are the heart of the latest generations of supercomputers. We efficiently accelerate a compressible multiphase flow solver via OpenACC on NVIDIA and AMD Instinct GPUs. Optimization is accomplished by specifying the directive clauses 'gang vector' and 'collapse'. Further speedups of six and ten times are achieved by packing user-defined types into coalesced multidimensional arrays and manual inlining via metaprogramming. Additional optimizations yield seven-times speedup in array packing and thirty-times speedup of select kernels on Frontier. Weak scaling efficiencies of 97% and 95% are observed when scaling to 50% of Summit and 95% of Frontier. Strong scaling efficiencies of 84% and 81% are observed when increasing the device count by a factor of 8 and 16 on V100 and MI250X hardware. The strong scaling efficiency of AMD's MI250X increases to 92% when increasing the device count by a factor of 16 when GPU-aware MPI is used for communication.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。