chibi@1604:~/NVIDIA_CUDA-9.2_Samples/5_Simulations/nbody$ ./nbody –benchmark –numbodies=256000 -numdevices=5
Run “nbody -benchmark [-numbodies=<numBodies>]” to measure performance.
-fullscreen (run n-body simulation in fullscreen mode)
-fp64 (use double precision floating point values for simulation)
-hostmem (stores simulation data in host memory)
-benchmark (run benchmark to measure performance)
-numbodies=<N> (number of bodies (>= 1) to run in simulation)
-device=<d> (where d=0,1,2…. for the CUDA device to use)
-numdevices=<i> (where i=(number of CUDA devices > 0) to use for simulation)
-compare (compares simulation results running once on the default GPU and once on the CPU)
-cpu (run n-body simulation on the CPU)
-tipsy=<file.bin> (load a tipsy model file for simulation)
NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.
number of CUDA devices = 5
> Windowed mode
> Simulation data stored in system memory
> Single precision floating point simulation
> 5 Devices used for simulation
GPU Device 0: “TITAN V” with compute capability 7.0
> Compute 7.0 CUDA device: [TITAN V]
> Compute 7.0 CUDA device: [TITAN V]
> Compute 6.1 CUDA device: [GeForce GTX 1080 Ti]
> Compute 6.1 CUDA device: [GeForce GTX 1080 Ti]
> Compute 6.1 CUDA device: [GeForce GT 1030]
number of bodies = 256000
256000 bodies, total time for 10 iterations: 547.120 ms
= 1197.836 billion interactions per second
= 23956.714 single-precision GFLOP/s at 20 flops per interaction
chibi@1604:~/NVIDIA_CUDA-9.2_Samples/5_Simulations/nbody$ cat /etc/os-release
NAME=”Ubuntu”
VERSION=”16.04.5 LTS (Xenial Xerus)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=”Ubuntu 16.04.5 LTS”
VERSION_ID=”16.04″
HOME_URL=”http://www.ubuntu.com/”
SUPPORT_URL=”http://help.ubuntu.com/”
BUG_REPORT_URL=”http://bugs.launchpad.net/ubuntu/”
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
chibi@1604:~/NVIDIA_CUDA-9.2_Samples/5_Simulations/nbody$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148
chibi@1604:~/NVIDIA_CUDA-9.2_Samples/5_Simulations/nbody$ sudo hddtemp /dev/sda
/dev/sda: SATA SSD: 30°C
chibi@1604:~/NVIDIA_CUDA-9.2_Samples/5_Simulations/nbody$Ubuntu16.04.5 TITAN Vx2 GTX1080Tix2 GT1030 CUDA9.2 Sample nbody benchmark 23956.714 GFLOPs nvidia-smi sensors