brute force algorithm suitable for simulating and visualizing spiral galaxy evolution. accelerated with OpenACC directives targeting NVIDIA GP GPUs. originally started this project as a barneshut simulation: https://github.com/alexshi0000/Astrocom
- particles: 112,640
- realization time: ~ 29 minutes
- particles: 33,693
- realization time: ~ 9 minutes
git clone https://github.com/alexshi0000/OpenACC-PGI-NBODY
sudo apt-get purge nvidia*
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
sudo apt-get install nvidia-370 (or better)
nvidia-smi
sudo apt-get install freeglut3 freeglut3-dev
https://developer.nvidia.com/openacc-toolkit
sudo apt install make
./../src/make pgi
sudo chmod +x ./../src/pgi_make.sh
./../src/pgi_make.sh
./../bin/main
./../bin/main.exe