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

加速的FDPS -使用加速器和FDPS的算法

Accelerated FDPS --- Algorithms to Use Accelerators with FDPS

Masaki Iwasawa, Daisuke Namekata, Keigo Nitadori, Kentaro Nomura, Long Wang, Miyuki Tsubouchi, Junichiro Makino

摘要:

在本文中,我们描述了我们在FDPS中实现的算法,以有效地利用加速器硬件,如GPGPU。我们已经开发了FDPS,使许多研究人员能够开发自己的高性能并行基于粒子的仿真程序,而无需花费大量的时间进行并行化和性能调整。FDPS的基本思想是以“通用”形式为基于粒子的模拟提供高性能的并行算法实现,以便研究人员可以定义自己的粒子数据结构和粒子间相互作用函数,并将其提供给FDPS。用用户提供的数据类型和交互函数编译的FDPS提供了并行化所需的所有功能,使用这些功能,研究人员可以像编写简单的非并行程序一样编写程序。通过编写使用加速器的交互函数,可以在FDPS中使用加速器。然而,效率受到CPU和加速器之间通信的延迟和带宽的限制,并且还受到交互功能的可用并行度与硬件并行度之间的不匹配的限制。我们已经修改了用户提供的交互功能的接口,使加速器更有效地使用。我们还实施了新技术,减少了CPU方面的工作量以及CPU和加速器之间的通信量。我们已经测量了N体模拟的性能与NVIDIA Volta GPGPU使用FDPS的系统和实现的性能是理论峰值极限的27%左右。我们已经建立了一个详细的性能模型,并发现,目前的实现可以实现良好的性能在系统上具有更小的内存和通信带宽。

英文摘要:

In this paper, we describe the algorithms we implemented in FDPS to make efficient use of accelerator hardware such as GPGPUs. We have developed FDPS to make it possible for many researchers to develop their own high-performance parallel particle-based simulation programs without spending large amount of time for parallelization and performance tuning. The basic idea of FDPS is to provide a high-performance implementation of parallel algorithms for particle-based simulations in a "generic" form, so that researchers can define their own particle data structure and interparticle interaction functions and supply them to FDPS. FDPS compiled with user-supplied data type and interaction function provides all necessary functions for parallelization, and using those functions researchers can write their programs as though they are writing simple non-parallel program. It has been possible to use accelerators with FDPS, by writing the interaction function that uses the accelerator. However, the efficiency was limited by the latency and bandwidth of communication between the CPU and the accelerator and also by the mismatch between the available degree of parallelism of the interaction function and that of the hardware parallelism. We have modified the interface of user-provided interaction function so that accelerators are more efficiently used. We also implemented new techniques which reduce the amount of work on the side of CPU and amount of communication between CPU and accelerators. We have measured the performance of N-body simulations on a systems with NVIDIA Volta GPGPU using FDPS and the achieved performance is around 27 \% of the theoretical peak limit. We have constructed a detailed performance model, and found that the current implementation can achieve good performance on systems with much smaller memory and communication bandwidth.

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

↑