#My first parallel programming project with CUDA - N-body Simulation

1 messages · Page 1 of 1 (latest)

fair horizon
#

This is a project I worked on to practice parallel programming with CUDA. It is on N-body simulation and utilizes the Barnes-Hut algorithm to simulate the stars and planets under the influence of gravitational forces. I've implemented spiral galaxy and galaxies collision. The visualizations are not the prettiest, but you can find them through the README's of the repo.

repo: https://github.com/Hsin-Hung/N-body-simulation
galaxy collision: https://youtu.be/Krb5nEYRVaM
spiral galaxy: https://youtu.be/Sap3lGzhlzE
Feel free to share any other interesting parallel programming project ideas that I can work on next!

GitHub

an n-body simulation using both direct-sum and Barnes-Hut algorithms and implemented in CUDA - GitHub - Hsin-Hung/N-body-simulation: an n-body simulation using both direct-sum and Barnes-Hut algori...

Galaxy collision simulation implemented in CUDA using the Barnes-Hut algorithm with 50000 bodies.

code: https://github.com/Hsin-Hung/N-body-simulation

▶ Play video

Spiral galaxy simulation implemented in CUDA using the Barnes-Hut algorithm with 1 million bodies.

code: https://github.com/Hsin-Hung/N-body-simulation

▶ Play video
sage acorn
#

that's cool as fuck

#

can you post a video of the 2 galaxies but they start with some offset velocity so they go into more of a spiralling collision

remote hearth
#

I want to check it out, but cmake keeps saying no

fair horizon
remote hearth
#

But I really want to run it on my pc

#

Just from the first 5 seconds, I agree with arson

fair horizon
fair horizon
sage acorn
#

yea

remote hearth
#

Cmake is a mess, I think I'll try building it again tomorrow