大型GPU机群上并行重力$N$体程序的性能分析
Performance analysis of parallel gravitational $N$-body codes on large GPU cluster
摘要:
我们比较了两个非常不同的并行引力$N$体代码的性能,在大型GPU集群上进行天体物理模拟,这两个代码都是各自领域的先驱,也是在某些相互尺度上的先驱-NBODY 6 ++和Bonsai。通过对两种编码的结构分解和时序测量建模,分析了它们的性能、准确性和效率,并对它们进行了基准测试。我们发现,这两个代码都进行了大量优化,以利用GPU的计算潜力,因为它们的性能已经接近底层GPU卡的最大单精度性能的一半。有了这样的性能,我们预测,$200-300$的速度可以实现高达1 k的处理器和GPU同时使用时。我们讨论了两个代码的比较的定量信息,发现在相同的情况下,盆景采用更大的时间步长以及相对能量误差比NBODY 6 ++,通常范围从$10-50$倍大,这取决于所选择的参数的代码。虽然这两个代码是为不同的天体物理应用而建立的,但在特定条件下,它们在某些物理尺度上的性能可能会重叠,因此允许用户从其中任何一个中选择相应的微调参数。
英文摘要:
We compare the performance of two very different parallel gravitational $N$-body codes for astrophysical simulations on large GPU clusters, both pioneer in their own fields as well as in certain mutual scales - NBODY6++ and Bonsai. We carry out the benchmark of the two codes by analyzing their performance, accuracy and efficiency through the modeling of structure decomposition and timing measurements. We find that both codes are heavily optimized to leverage the computational potential of GPUs as their performance has approached half of the maximum single precision performance of the underlying GPU cards. With such performance we predict that a speed-up of $200-300$ can be achieved when up to 1k processors and GPUs are employed simultaneously. We discuss the quantitative information about comparisons of two codes, finding that in the same cases Bonsai adopts larger time steps as well as relative energy errors than NBODY6++, typically ranging from $10-50$ times larger, depending on the chosen parameters of the codes. While the two codes are built for different astrophysical applications, in specified conditions they may overlap in performance at certain physical scale, and thus allowing the user to choose from either one with finetuned parameters accordingly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。