并行粒子模拟代码开发框架FDPS的实现与性能
Implementation and performance of FDPS: A Framework Developing Parallel Particle Simulation Codes
摘要:
介绍了粒子模拟器开发框架FDPS的基本思想、实现方法、实测性能和性能模型。FDPS是一个应用程序开发框架,它帮助研究人员为大规模分布式内存并行超级计算机开发基于粒子的模拟程序。一个基于粒子的分布内存并行计算机模拟程序需要执行区域分解,重新分配的粒子,并收集粒子信息的相互作用计算。此外,即使不使用分布式存储器并行计算机,为了减少计算量,也应该使用Barnes-Hut树方法等算法进行远程交互。对于短程相互作用,有必要采用一些方法将计算限制在相邻粒子。FDPS提供了所有这些必要的功能,有效地并行执行基于粒子的模拟作为“模板”,这是独立的粒子的实际数据结构和功能形式的相互作用。通过使用FDPS,研究人员可以编写他们的程序,编写一个简单的,顺序的和未优化的程序所需的工作量为O(N^2)计算成本,但程序,一旦用FDPS编译,将有效地运行在大规模并行超级计算机上。一个简单的引力N体程序可以写在大约120行。我们报告这些程序的实际性能和性能模型。该算法的弱尺度性能非常好,对K机的整个系统都获得了几乎线性的加速比。每个时间步的最小计算时间在30 ms(N=10^7)到300 ms(N=10^9)的范围内。目前,这些方法受到相互作用计算所需的区域分解计算和通信时间的限制。我们讨论如何克服这些瓶颈。
英文摘要:
We present the basic idea, implementation, measured performance and performance model of FDPS (Framework for developing particle simulators). FDPS is an application-development framework which helps the researchers to develop particle-based simulation programs for large-scale distributed-memory parallel supercomputers. A particle-based simulation program for distributed-memory parallel computers needs to perform domain decomposition, redistribution of particles, and gathering of particle information for interaction calculation. Also, even if distributed-memory parallel computers are not used, in order to reduce the amount of computation, algorithms such as Barnes-Hut tree method should be used for long-range interactions. For short-range interactions, some methods to limit the calculation to neighbor particles are necessary. FDPS provides all of these necessary functions for efficient parallel execution of particle-based simulations as "templates", which are independent of the actual data structure of particles and the functional form of the interaction. By using FDPS, researchers can write their programs with the amount of work necessary to write a simple, sequential and unoptimized program of O(N^2) calculation cost, and yet the program, once compiled with FDPS, will run efficiently on large-scale parallel supercomputers. A simple gravitational N-body program can be written in around 120 lines. We report the actual performance of these programs and the performance model. The weak scaling performance is very good, and almost linear speedup was obtained for up to the full system of K computer. The minimum calculation time per timestep is in the range of 30 ms (N=10^7) to 300 ms (N=10^9). These are currently limited by the time for the calculation of the domain decomposition and communication necessary for the interaction calculation. We discuss how we can overcome these bottlenecks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。