Speeding up N-body Calculations on Machines without Hardware Square Root

Speeding up N-body Calculations on Machines without Hardware Square Root
复制标题

在没有硬件平方根的机器上加速 N 体计算

DOI:
10.1155/1992/974623
复制
发表时间:
1992
影响因子:
--
通讯作者:
A. Karp
A. Karp
中科院分区:
计算机科学4区
文献类型:
--
作者:
A. Karp

文献摘要

被引文献

相似文献

n体模拟中最耗时的部分是计算粒子加速度的分量。在大多数机器上,计算加速度最慢的部分是计算$r^{-3/2}$,这对于在软件中进行平方根的机器来说尤其如此。这篇文章展示了如何使用标准Fortran将这部分计算的时间减少到原来的3倍或更多。
The most time consuming part of an N-body simulation is computing the components of the accelerations of the particles. On most machines the slowest part of computing the acceleration is in evaluating $r^{-3/2}$, which is especially true on machines that do the square root in software. This note shows how to cut the time for this part of the calculation by a factor of 3 or more using standard Fortran.