arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.09824astro-ph.COphysics.comp-ph
收藏

PHoToNs --一个面向线程和异构并行的宇宙学N体模拟程序

PHoToNs--A Parallel Heterogeneous & Threads oriented code for cosmological N-body simulation

Qiao Wang, Zongyan Cao, Liang Gao, Xuebin Chi, Chen Meng, Jie Wang, Long Wang

摘要:

我们介绍了一种新的宇宙学模拟代码PHoToNs,它具有在异构高性能计算机(HPC)上进行大规模宇宙学模拟和面向线程编程的功能。PHoToNs采用一种混合方案来计算重力,用传统的PM计算远程力,树算法计算短程力,直接求和PP计算非常接近的粒子的重力。采用自相似空间填充Peano-Hilbert曲线对计算区域进行分解。高度使用线程编程来更灵活地管理域通信、PM计算和同步,以及CPU+MIC平台上的双树遍历。PHoToN的可扩展性表现良好,PP内核的效率在MIC和CPU平台上分别达到峰值性能的68.6%和74.4%。我们还测试了代码的准确性,并与社区中常用的Gadget-2进行了比较,结果非常一致。

英文摘要:

We introduce a new code for cosmological simulations, PHoToNs, which has features on performing massive cosmological simulations on heterogeneous high performance Computer (HPC) and threads oriented programming. PHoToNs adopts a hybrid scheme to compute gravity force, with the conventional PM to compute the long-range force, the Tree algorithm to compute the short range force, and the direct summation PP to compute the gravity from very close particles. A self-similar space filling Peano-Hilbert curve is used to decompose computing domain. Threads programming is highly used to more flexibly manage the domain communication, PM calculation and synchronization, as well as Dual Tree Traversal on the CPU+MIC platform. The scalability of the PHoToNs performs well and the efficiency of PP kernel achieves 68.6% of peak performance on MIC and 74.4% on CPU platforms. We also test the accuracy of the code against the much used Gadget-2 in the community and found excellent agreement.

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

↑