arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1510.04068astro-ph.IMcs.MS
收藏

Sapporo2:多功能直接$N$体库

Sapporo2: A versatile direct $N$-body library

Jeroen Bédorf, Evghenii Gaburov, Simon Portegies Zwart

摘要:

天体物理学直接$N$体方法是使用NVIDIA CUDA架构实现的首批生产算法之一。现在,近七年后,GPU是天文学中用于模拟恒星系统的最常用的加速器设备。在本文中,我们提出了实现札幌2 $N$体库,它允许研究人员使用GPU的$N$体模拟很少或根本没有努力。五年前发布的第一个版本被积极使用,但在数值精度和对高阶积分器的支持方面缺乏先进的功能和通用性。在这个更新的版本中,我们从头开始重建代码,并添加了对OpenCL,多精度和高阶积分器的支持。我们将展示如何调整这些代码为不同的GPU架构,并提出如何继续利用GPU的最佳,即使只有少量的粒子($N < 100$)集成。这种精心的调优使Sapporo2比Sapporo1更快,即使增加了选项和双精度数据加载。该代码在一系列NVIDIA和AMD GPU上以单精度和双精度精度运行。随着OpenCL支持的增加,该库也能够在支持OpenCL的CPU和其他加速器上运行。

英文摘要:

Astrophysical direct $N$-body methods have been one of the first production algorithms to be implemented using NVIDIA's CUDA architecture. Now, almost seven years later, the GPU is the most used accelerator device in astronomy for simulating stellar systems. In this paper we present the implementation of the Sapporo2 $N$-body library, which allows researchers to use the GPU for $N$-body simulations with little to no effort. The first version, released five years ago, is actively used, but lacks advanced features and versatility in numerical precision and support for higher order integrators. In this updated version we have rebuilt the code from scratch and added support for OpenCL, multi-precision and higher order integrators. We show how to tune these codes for different GPU architectures and present how to continue utilizing the GPU optimal even when only a small number of particles ($N < 100$) is integrated. This careful tuning allows Sapporo2 to be faster than Sapporo1 even with the added options and double precision data loads. The code runs on a range of NVIDIA and AMD GPUs in single and double precision accuracy. With the addition of OpenCL support the library is also able to run on CPUs and other accelerators that support OpenCL.

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

↑