UoB-HPC / stdpar-nbody

https://research-information.bris.ac.uk/en/publications/efficient-tree-based-parallel-algorithms-for-n-body-simulations-u
MIT License
2 stars 0 forks source link

Add octree and new models #14

Closed limefax closed 5 months ago

limefax commented 5 months ago

nbody_animation

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.

gonzalobg commented 5 months ago

This looks great!

gonzalobg commented 5 months ago

Thanks, lets merge this!