SearcharxivSearch

arXiv · astro-ph/0702058

High Performance Direct Gravitational N-body Simulations on Graphics Processing Unit I: An implementation in Cg

Also available from

Abstract

We present the results of gravitational direct $N$-body simulations using the commercial graphics processing units (GPU) NVIDIA Quadro FX1400 and GeForce 8800GTX, and compare the results with GRAPE-6Af special purpose hardware. The force evaluation of the $N$-body problem was implemented in Cg using the GPU directly to speed-up the calculations. The integration of the equations of motions were, running on the host computer, implemented in C using the 4th order predictor-corrector Hermite integrator with block time steps. We find that for a large number of particles ($N \apgt 10^4$) modern graphics processing units offer an attractive low cost alternative to GRAPE special purpose hardware. A modern GPU continues to give a relatively flat scaling with the number of particles, comparable to that of the GRAPE. The GRAPE is designed to reach double precision, whereas the GPU is intrinsically single-precision. For relatively large time steps, the total energy of the N-body system was conserved better than to one in $10^6$ on the GPU, which is impressive given the single-precision nature of the GPU. For the same time steps, the GRAPE gave somewhat more accurate results, by about an order of magnitude. However, smaller time steps allowed more energy accuracy on the grape, around $10^{-11}$, whereas for the GPU machine precision saturates around $10^{-6}$ For $N\apgt 10^6$ the GeForce 8800GTX was about 20 times faster than the host computer. Though still about a factor of a few slower than GRAPE, modern GPUs outperform GRAPE in their low cost, long mean time between failure and the much larger onboard memory; the GRAPE-6Af holds at most 256k particles whereas the GeForce 8800GTX can hold 9 million particles in memory.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Simon Portegies Zwart, Robert Belleman, Peter Geldof. 2007-04-23. High Performance Direct Gravitational N-body Simulations on Graphics Processing Unit I: An implementation in Cg. https://doi.org/10.1016/j.newast.2007.05.004

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

KEEP EXPLORING

Related papers

Dark Energy is the Cosmological Quantum Vacuum Energy of Light Particles-The Axion and the Lightest Neutrino

We uncover the general mechanism producing the dark energy(DE). This is only based on well known quantum physics and cosmology. We show that the observed DE originates from the cosmological quantum vacuum of light particles which provides a continuous energy distribution able to reproduce the data. Bosons give positive contributions to the DE while fermions yield negative contributions. As usual in field theory, ultraviolet divergences are subtracted from the physical quantities. The subtractions respect the symmetries of the theory and we normalize the physical quantities to be zero for the Minkowski vacuum. The resulting finite contributions to the energy density and the pressure from the quantum vacuum grow as log a(t) where a(t) is the scale factor, while the particle contributions dilute as 1/a^3(t), as it must be for massive particles. The DE equation of state P = w(z)H turns to be w(z)<-1 with w(z) asymptotically reaching the value -1 from below.A scalar particle can produce the observed DE through its quantum cosmological vacuum provided:(i)its mass is of the order of 10^{-3} eV = 1 meV,(ii) it is very weakly coupled and (iii) it is stable on the time scale of the age of the universe. The axion vacuum thus appears as a natural candidate. The neutrino vacuum (especially the lightest mass eigenstate) can give negative contributions to the DE. We find that w(z=0) is slightly below -1 by an amount ranging from [-1.5 10^{-3}] to [-8 10^{-3}] and we predict the axion mass to be in the range between 4 and 5 meV. We find that the universe will expand in the future faster than the de Sitter universe, as an exponential in the square of the cosmic time. DE arises from the quantum vacua of light particles in FRW cosmological space time in an analogous way to the Casimir effect in Minkowski spacetime with non trivial boundaries.

astro-ph

Scaling of Black Hole Accretion Discs from Gamma-Ray Bursts and Black Hole X-Ray Binaries to Active Galactic Nuclei

I consider how physical processes scale over eight orders of magnitude in black hole mass, from stellar masses in gamma-ray bursts (GRB) and black-hole X-ray binaries (BHXRB) to supermassive active galactic nuclei (AGN). Accretion rates onto stellar mass black holes range over more than sixteen orders of magnitude, from the lower luminosity BHXRB to GRB. These enormous parameter ranges correspond to qualitative as well as quantitative differences in behavior. The fundamental questions involve the balance between nonequilibrium and thermalized plasmas. When energy fluxes exceed a critical value $\sim 10^{29}$ erg/cm$^2$s, as in GRB, a black-body equilibrium pair plasma forms. At the lower fluxes found in AGN, BHXRB and microquasars, accretion power electrodynamically accelerates a small number of very energetic particles, explaining their non-thermal spectra and the high energy gamma-ray emission of blazars. Ultra-high energy cosmic rays may be accelerated by massive black holes, otherwise undetectable, with very low thermal luminosities. New-born fast high-field pulsars may be in the black-body equilibrium regime, resembling SGR in permanent outburst. I also consider the question, significant for the acceleration of nonthermal particles in GRB outflows, of whether collisionless plasmas interpenetrate rather than forming hydrodynamic shocks, and propose this as an alternative to internal shock models of GRB. A new appendix attempts to explain why AGN are, proportionally, more efficient accelerators of energetic particles than stellar mass black holes.

astro-ph