等离子体的大规模模拟对于推进我们对聚变装置、空间和天体物理系统的理解至关重要。粒子单元(PIC)的代码已经证明了他们的成功模拟HPC系统上的许多等离子体现象。如今,旗舰超级计算机在每个计算节点上配备多个GPU,以高能效实现前所未有的计算能力。PIC代码需要新的算法设计和实现,以利用这样的加速平台。在这项工作中,我们设计并优化了一个三维隐式PIC代码,称为CumniPIC,运行在一个通用的多GPU计算节点。与基于CPU的实现上的域分解相比,我们引入了粒子分解数据布局,以使用粒子批处理来在GPU上进行重叠通信和计算。CronniPIC还原生支持不同的精度表示,以在支持降低精度的硬件上实现加速。我们通过著名的GEM挑战来验证CNONIPIC,并提供性能分析。我们在三个多GPU平台上测试了OpenPIC,并报告了与OpenPIC CPU OpenMP版本性能相比,性能提高了200- 800倍。我们表明,降低精度可以进一步将三个平台的性能提高45%至80%。由于这些性能的改进,在具有多个GPU的单个节点上,RumniPIC可以实现只有使用集群才能实现的大规模三维PIC模拟。
英文摘要:
Large-scale simulations of plasmas are essential for advancing our understanding of fusion devices, space, and astrophysical systems. Particle-in-Cell (PIC) codes have demonstrated their success in simulating numerous plasma phenomena on HPC systems. Today, flagship supercomputers feature multiple GPUs per compute node to achieve unprecedented computing power at high power efficiency. PIC codes require new algorithm design and implementation for exploiting such accelerated platforms. In this work, we design and optimize a three-dimensional implicit PIC code, called sputniPIC, to run on a general multi-GPU compute node. We introduce a particle decomposition data layout, in contrast to domain decomposition on CPU-based implementations, to use particle batches for overlapping communication and computation on GPUs. sputniPIC also natively supports different precision representations to achieve speed up on hardware that supports reduced precision. We validate sputniPIC through the well-known GEM challenge and provide performance analysis. We test sputniPIC on three multi-GPU platforms and report a 200-800x performance improvement with respect to the sputniPIC CPU OpenMP version performance. We show that reduced precision could further improve performance by 45% to 80% on the three platforms. Because of these performance improvements, on a single node with multiple GPUs, sputniPIC enables large-scale three-dimensional PIC simulations that were only possible using clusters.
TokaGLINT: A Scalable GPU-Tailored Implicit Solver for Full 3D Tokamak Electromagnetic Simulations
Computer Network Information Center, Chinese Academy of Sciences(中国科学院计算机网络信息中心);University of Chinese Academy of Sciences(中国科学院大学);Tsinghua University(清华大学);University of Science and Technology of China(中国科学技术大学)
Michigan State University(密歇根州立大学);Michigan State University Institute for Cyber Enabled Research(密歇根州立大学网络赋能研究学院);Michigan State University Department of Mathematics(密歇根州立大学数学系)