PhotoNs-GPU:一个GPU加速的宇宙学模拟程序
PhotoNs-GPU:A GPU accelerated cosmological simulation code
摘要:
基于粒子网格快速多极子方法(PM-FMM)算法,提出了一个GPU加速的宇宙学模拟程序PhotoNs-GPU,并重点讨论了GPU的利用和优化。为了提高核函数中特殊函数的处理速度,提出了一种适当的截断重力插值方法。我们在GPU上验证了混合精度和不同层次插值方法的GPU代码。对于目前实际的宇宙学模拟来说,单精度的运行速度大约是双精度的两倍。但在功率谱中会产生无偏的小噪声。与PhotoNs和Gadget-2的CPU版本相比,新代码的效率显著提高。在启动了内存访问、内核函数和并发管理等方面的优化后,测试运行的峰值性能达到了理论速度的48%,GPU上的平均性能接近35%。
英文摘要:
We present a GPU-accelerated cosmological simulation code, PhotoNs-GPU, based on algorithm of Particle Mesh Fast Multipole Method (PM-FMM), and focus on the GPU utilization and optimization. A proper interpolated method for truncated gravity is introduced to speed up the special functions in kernels. We verify the GPU code in mixed precision and different levels of interpolated method on GPU. A run with single precision is roughly two times faster that double precision for current practical cosmological simulations. But it could induce a unbiased small noise in power spectrum. Comparing with the CPU version of PhotoNs and Gadget-2, the efficiency of new code is significantly improved. Activated all the optimizations on the memory access, kernel functions and concurrency management, the peak performance of our test runs achieves 48% of the theoretical speed and the average performance approaches to 35% on GPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。