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 条