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
相关论文
共 50 条