Closed limefax closed 5 months ago
make gcc D=3
./nbody_d3_gcc
Some very inaccurate benchmarks run on my laptop:
$ ./nbody_d2_gcc -s 5 -n 1000000 && ./nbody_d3_gcc -s 5 -n 1000000 && ./nbody_d4_gcc -s 5 -n 1000000 Starting simulation Done simulation Total time: 4987.50 ms Starting simulation Done simulation Total time: 20318.35 ms Starting simulation Done simulation Total time: 70339.24 ms
$ ./nbody_d2_gpu -s 5 -n 1000000 && ./nbody_d3_gpu -s 5 -n 1000000 && ./nbody_d4_gpu -s 5 -n 1000000 Starting simulation Done simulation Total time: 2679.34 ms Starting simulation Done simulation Total time: 10816.77 ms Starting simulation Done simulation Total time: 63003.19 ms
For both 2D cpu and gpu I get similar performance as before.
This looks great!
Thanks, lets merge this!
make gcc D=3
to get./nbody_d3_gcc
Some very inaccurate benchmarks run on my laptop:
For both 2D cpu and gpu I get similar performance as before.