Implementing an efficient collisionless N-body code on the Cray T3D
暂无分享,去创建一个
We discuss a parallel implementation of a collisionless N-body code on the Cray T3D. The code was previously successfully implemented on the Connection Machine CM-5. The algorithm evolves self-gravitating systems with approximate spheroidal symmetry by solving Poisson’s equation for the global potential, given a realization of the density, and then advances the particle distribution under its own potential, solving for the new potential iteratively. The algorithm is naturally parallel and can be efficiently implemented on current massively parallel architectures. We discuss some of the issues that arise in porting efficient codes between different parallel architectures and show how changing the structure of the code can produce dramatic speedups on different architectures. We discuss some implications for automatic parallelization and optimization with portable compilers. © 1997 American Institute of Physics.