Skip to content

Instantly share code, notes, and snippets.

Created August 6, 2012 20:26
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/3278149 to your computer and use it in GitHub Desktop.
Save anonymous/3278149 to your computer and use it in GitHub Desktop.
./nbody -n=61440 -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
> Single precision floating point simulation
> 1 Devices used for simulation
> Compute 2.1 CUDA device: [GeForce GT 540M]
61440 bodies, total time for 10 iterations: 7287.569 ms
= 5.180 billion interactions per second
= 103.598 single-precision GFLOP/s at 20 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