用图形处理单元加速NBODY6
Accelerating NBODY6 with Graphics Processing Units
摘要:
我们描述了使用图形处理单元(GPU),以加快代码NBODY 6,这是广泛用于直接$N$体模拟。多年来,直接力计算的$N^2$性质已经证明是扩展粒子数的障碍。在早期引入力多项式和单个时间步长之后,首先通过引入相邻方案来降低计算成本。经过十年的GRAPE计算机进一步加速了力的计算,我们现在处于GPU的时代,相对较小的硬件系统具有很高的成本效益。通过使用GPU获得所谓的规则力(通常涉及约99%的粒子),同时在主机上评估剩余的局部力,可以显著提高效率。然而,后一种操作的执行频率高达20倍,并且仍然可能导致显著的成本。并行SSE/AVX程序减少了这方面的工作,其中每个相互作用项主要使用单精度计算。我们还讨论了进一步的战略与坐标和速度预测所需的集成方案。这就留下了硬二进制和多个近距离相遇,它们可以通过几种正则化方法来处理。目前的nbody 6-GPU代码是很好的平衡,在粒子范围$10^4-2 \times 10^5$的双GPU系统连接到一个标准的PC模拟。
英文摘要:
We describe the use of Graphics Processing Units (GPUs) for speeding up the code NBODY6 which is widely used for direct $N$-body simulations. Over the years, the $N^2$ nature of the direct force calculation has proved a barrier for extending the particle number. Following an early introduction of force polynomials and individual time-steps, the calculation cost was first reduced by the introduction of a neighbour scheme. After a decade of GRAPE computers which speeded up the force calculation further, we are now in the era of GPUs where relatively small hardware systems are highly cost-effective. A significant gain in efficiency is achieved by employing the GPU to obtain the so-called regular force which typically involves some 99 percent of the particles, while the remaining local forces are evaluated on the host. However, the latter operation is performed up to 20 times more frequently and may still account for a significant cost. This effort is reduced by parallel SSE/AVX procedures where each interaction term is calculated using mainly single precision. We also discuss further strategies connected with coordinate and velocity prediction required by the integration scheme. This leaves hard binaries and multiple close encounters which are treated by several regularization methods. The present nbody6-GPU code is well balanced for simulations in the particle range $10^4-2 \times 10^5$ for a dual GPU system attached to a standard PC.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。