An efficient parallel algorithm for O(N2) direct summation method and its variations on distributed-memory parallel machines

被引:27
作者
Makino, J [1 ]
机构
[1] Univ Tokyo, Sch Sci, Dept Astron, Bunkyo Ku, Tokyo 1130033, Japan
来源
NEW ASTRONOMY | 2002年 / 7卷 / 07期
基金
日本学术振兴会;
关键词
celestial mechanics; stellar dynamics; methods : numerical;
D O I
10.1016/S1384-1076(02)00143-4
中图分类号
P1 [天文学];
学科分类号
0704 ;
摘要
We present a novel, highly efficient algorithm to parallelize O(N-2) direct summation method for N-body problems with individual timesteps on distributed-memory parallel machines such as Beowulf clusters. Previously known algorithms, in which all processors have complete copies of the N-body system, has the serious problem that the communication-computation ratio increases as we increase the number of processors, since the communication cost is independent of the number of processors. In the new algorithm, p processors are organized as a rootp x rootp two-dimensional array. Each processor has N/rootp particles, but the data are distributed in such a way that complete system is presented if we look at any row or column consisting of rootp processors. In this algorithm, the communication cost scales as N/rootp, while the calculation cost scales as N-2/p. Thus, we can use a much larger number of processors without losing efficiency compared to what was practical with previously known algorithms. (C) 2002 Elsevier Science B.V. All rights reserved.
引用
收藏
页码:373 / 384
页数:12
相关论文
共 13 条
  • [11] MAKINO J, 1988, SCI SIMULATIONS SPEC
  • [12] McMillan S. L. W., 1986, The Use of Supercomputers in Stellar Dynamics, V267, P156, DOI [10.1007/BFb0116406, DOI 10.1007/BFB0116406]
  • [13] A SPECIAL-PURPOSE COMPUTER FOR GRAVITATIONAL MANY-BODY PROBLEMS
    SUGIMOTO, D
    CHIKADA, Y
    MAKINO, J
    ITO, T
    EBISUZAKI, T
    UMEMURA, M
    [J]. NATURE, 1990, 345 (6270) : 33 - 35