Skip to content

Instantly share code, notes, and snippets.

Created August 6, 2012 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3278246 to your computer and use it in GitHub Desktop.
Save anonymous/3278246 to your computer and use it in GitHub Desktop.
./nbody -fp64 -n=30720 -benchmark
[nbody] starting...
Run "nbody -benchmark [-n=<numBodies>]" to measure perfomance.
-fullscreen (run n-body simulation in fullscreen mode)
-fp64 (use double precision floating point values for simulation)
-numdevices=N (use first N CUDA devices for simulation)
> Windowed mode
> Simulation data stored in video memory
> Double precision floating point simulation
> 1 Devices used for simulation
> Compute 2.1 CUDA device: [GeForce GT 540M]
30720 bodies, total time for 10 iterations: 16921.125 ms
= 0.558 billion interactions per second
= 16.731 double-precision GFLOP/s at 30 flops per interaction
[nbody] test results...
PASSED
> exiting in 3 seconds: 3...2...1...done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment