arXiv ScienceSearch

arXiv · 0707.0438

High Performance Direct Gravitational N-body Simulations on Graphics Processing Units -- II: An implementation in CUDA

Abstract

We present the results of gravitational direct $N$-body simulations using the Graphics Processing Unit (GPU) on a commercial NVIDIA GeForce 8800GTX designed for gaming computers. The force evaluation of the $N$-body problem is implemented in ``Compute Unified Device Architecture'' (CUDA) using the GPU to speed-up the calculations. We tested the implementation on three different $N$-body codes: two direct $N$-body integration codes, using the 4th order predictor-corrector Hermite integrator with block time-steps, and one Barnes-Hut treecode, which uses a 2nd order leapfrog integration scheme. The integration of the equations of motions for all codes is performed on the host CPU. We find that for $N > 512$ particles the GPU outperforms the GRAPE-6Af, if some softening in the force calculation is accepted. Without softening and for very small integration time steps the GRAPE still outperforms the GPU. We conclude that modern GPUs offer an attractive alternative to GRAPE-6Af special purpose hardware. Using the same time-step criterion, the total energy of the $N$-body system was conserved better than to one in $10^6$ on the GPU, only about an order of magnitude worse than obtained with GRAPE-6Af. For $N \apgt 10^5$ the 8800GTX outperforms the host CPU by a factor of about 100 and runs at about the same speed as the GRAPE-6Af.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Robert G. Belleman, Jeroen Bedorf, Simon Portegies Zwart. 2007-07-16. High Performance Direct Gravitational N-body Simulations on Graphics Processing Units -- II: An implementation in CUDA. https://doi.org/10.1016/j.newast.2007.07.004

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

On binary pulsars and the force of gravity

The energy-momentum budget of the astrophysical systems can be studied by the exact local conservation equation derived by Landau and Lifshitz. We show that a similar equation is valid for the Einstein-Cartan gravity. We reanalyze a binary pulsar system using the Landau-Lifshitz conservation equation and show that the orbital period change rate can be completely understood as a curvature backreaction process. Taking into account the detailed theoretical and observational research of relativistic binary pulsar systems, especially the system of Hulse and Taylor, we conclude that general relativity and astrophysical observations rule out the existence of gravitational radiation. We comment upon the LIGO GW events and their alternative explanation, as well as the recent pulsar timing arrays data.

astro-ph

Oscillation frequencies and mode lifetimes in alpha Centauri A

We analyse our recently-published velocity measurements of alpha Cen A (Butler et al. 2004). After adjusting the weights on a night-by-night basis in order to optimize the window function to minimize sidelobes, we extract 42 oscillation frequencies with l=0 to 3 and measure the large and small frequency separations. We give fitted relations to these frequencies that can be compared with theoretical models and conclude that the observed scatter about these fits is due to the finite lifetimes of the oscillation modes. We estimate the mode lifetimes to be 1-2 d, substantially shorter than in the Sun.

astro-ph

Hipparcos period-luminosity relations for Miras and semiregular variables

We present period-luminosity diagrams for nearby Miras and semiregulars, selecting stars with parallaxes better than 20 per cent and well-determined periods. Using K-band magnitudes, we find two well-defined P-L sequences, one corresponding to the standard Mira P-L relation and the second shifted to shorter periods by a factor of about 1.9. The second sequence only contains semiregular variables, while the Mira sequence contains both Miras and semiregulars. Several semiregular stars show double periods in agreement with both relations. The Whitelock evolutionary track is shown to fit the data, indicating that the semiregulars are Mira progenitors. The transition between the two sequences may correspond to a change in pulsation mode or to a change in the stellar structure. Large amplitude pulsations leading to classical Mira classification occur mainly near the tip of the local AGB luminosity function.

astro-ph