  We present the results of gravitational direct $N$-body simulations using theGraphics Processing Unit (GPU) on a commercial NVIDIA GeForce 8800GTX designedfor gaming computers. The force evaluation of the $N$-body problem isimplemented in ``Compute Unified Device Architecture'' (CUDA) using the GPU tospeed-up the calculations. We tested the implementation on three different$N$-body codes: two direct $N$-body integration codes, using the 4th orderpredictor-corrector Hermite integrator with block time-steps, and oneBarnes-Hut treecode, which uses a 2nd order leapfrog integration scheme. Theintegration of the equations of motions for all codes is performed on the hostCPU.  We find that for $N > 512$ particles the GPU outperforms the GRAPE-6Af, ifsome softening in the force calculation is accepted. Without softening and forvery small integration time steps the GRAPE still outperforms the GPU. Weconclude that modern GPUs offer an attractive alternative to GRAPE-6Af specialpurpose 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, onlyabout an order of magnitude worse than obtained with GRAPE-6Af. For $N \apgt10^5$ the 8800GTX outperforms the host CPU by a factor of about 100 and runs atabout the same speed as the GRAPE-6Af.
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.