arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 0707.0438astro-phphysics.comp-ph
收藏

基于图形处理器的高性能引力N体直接模拟-- II:在CUDA中的实现

High Performance Direct Gravitational N-body Simulations on Graphics Processing Units -- II: An implementation in CUDA

Robert G. Belleman, Jeroen Bedorf, Simon Portegies Zwart

摘要:

我们提出的结果重力直接$N$体模拟使用图形处理单元(GPU)的商业NVIDIA GeForce 8800 GTX游戏电脑设计。$N$ -物体问题的力评估在"计算统一设备架构“(CUDA)中使用GPU来加速计算。我们测试了三个不同的$N$体代码的实现:两个直接的$N$体集成代码,使用块时间步长的四阶预测-校正Hermite积分器,和一个Barnes-Hut树代码,它使用二阶蛙跳积分方案。所有代码的运动方程的积分在主机CPU上执行。我们发现,对于$N > 512$颗粒的GPU优于GRAPE-6Af,如果在力的计算被接受一些软化。在没有软化和非常小的积分时间步长的情况下,GRAPE仍然优于GPU。我们的结论是,现代GPU提供了一个有吸引力的替代GRAPE-6Af专用硬件。使用相同的时间步长准则,$N$ -体系统的总能量比GPU上的$10^6$更好地守恒,仅比GRAPE-6Af获得的差大约一个数量级。对于$N \apgt 10^5$,8800 GTX的性能优于主机CPU约100倍,运行速度与GRAPE-6Af大致相同。

英文摘要:

We present the results of gravitational direct $N$-body simulations using the Graphics Processing Unit (GPU) on a commercial NVIDIA GeForce 8800GTX designed for gaming computers. The force evaluation of the $N$-body problem is implemented in ``Compute Unified Device Architecture'' (CUDA) using the GPU to speed-up the calculations. We tested the implementation on three different $N$-body codes: two direct $N$-body integration codes, using the 4th order predictor-corrector Hermite integrator with block time-steps, and one Barnes-Hut treecode, which uses a 2nd order leapfrog integration scheme. The integration of the equations of motions for all codes is performed on the host CPU. We find that for $N > 512$ particles the GPU outperforms the GRAPE-6Af, if some softening in the force calculation is accepted. Without softening and for very small integration time steps the GRAPE still outperforms the GPU. We conclude that modern GPUs offer an attractive alternative to GRAPE-6Af special purpose hardware. Using the same time-step criterion, the total energy of the $N$-body system was conserved better than to one in $10^6$ on the GPU, only about an order of magnitude worse than obtained with GRAPE-6Af. For $N \apgt 10^5$ the 8800GTX outperforms the host CPU by a factor of about 100 and runs at about the same speed as the GRAPE-6Af.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑