VECTORIZATION OF TREE TRAVERSALS

被引:95
作者
HERNQUIST, L
机构
[1] The Institute far Advanced Study, Princeton University, Princeton, NJ
关键词
D O I
10.1016/0021-9991(90)90230-X
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
A simple method for vectorizing tree searches, which operates by processing all relevant nodes at the same depth in the tree simultaneously, is described. This procedure appears to be general, assuming that gather-scatter operations are vectorizable, but is most efficient if the traversals proceed monotonically from the root to the leaves, or vice versa. Particular application is made to the hierarchical tree approach for computing the self-consistent interaction of N bodies. It is demonstrated that full vectorization of the requisite tree searches is feasible, resulting in a factor ∼4-5 improvement in cpu efficiency in the traversals on a CRAY X-MP. The overall gain in the case of the Barnes-Hut tree code algorithm is a factor ∼2-3, implying a net speed-up of ≈400-500 on a CRAY X-MP over a VAX 11/780 or SUN 3/50. © 1990.
引用
收藏
页码:137 / 147
页数:11
相关论文
共 22 条
[1]   THE FAST MULTIPOLE METHOD FOR GRIDLESS PARTICLE SIMULATION [J].
AMBROSIANO, J ;
GREENGARD, L ;
ROKHLIN, V .
COMPUTER PHYSICS COMMUNICATIONS, 1988, 48 (01) :117-125
[2]  
[Anonymous], 1988, RAPID EVALUATION POT
[3]  
APPEL A, 1981, THESIS PRINCETON U
[4]   AN EFFICIENT PROGRAM FOR MANY-BODY SIMULATION [J].
APPEL, AW .
SIAM JOURNAL ON SCIENTIFIC AND STATISTICAL COMPUTING, 1985, 6 (01) :85-103
[5]   A HIERARCHICAL O(N-LOG-N) FORCE-CALCULATION ALGORITHM [J].
BARNES, J ;
HUT, P .
NATURE, 1986, 324 (6096) :446-449
[6]  
BARNES J, 1986, USE SUPERCOMPUTERS S, P175
[7]   A MODIFIED TREE CODE - DONT LAUGH - IT RUNS [J].
BARNES, JE .
JOURNAL OF COMPUTATIONAL PHYSICS, 1990, 87 (01) :161-170
[8]   APPLICATIONS OF SMOOTH PARTICLE HYDRODYNAMICS (SPH) TO ASTROPHYSICAL PROBLEMS [J].
BENZ, W .
COMPUTER PHYSICS COMMUNICATIONS, 1988, 48 (01) :97-105
[9]  
BOAL DH, 1987, ANNU REV NUCL PART S, V37, P1
[10]   A FAST ADAPTIVE MULTIPOLE ALGORITHM FOR PARTICLE SIMULATIONS [J].
CARRIER, J ;
GREENGARD, L ;
ROKHLIN, V .
SIAM JOURNAL ON SCIENTIFIC AND STATISTICAL COMPUTING, 1988, 9 (04) :669-686