ECL-BH simulates the gravitational forces in a star cluster using the Barnes-Hut n-body algorithm. Version 4.5 includes support for Volta and Turing, bug fixes, and performance enhancements.
Click on ECL-BH_45.cu to download the source code. Click on one of the links below for a description of ECL-BH. Note that ECL-BH is protected by the license included in the beginning of the code.
The source code can be compiled as follows (note the -O1 to avoid a compiler problem):
nvcc -O1 -arch=sm_35 -use_fast_math ECL-BH_45.cu -o ecl-bh
To run the simulation with 100000 stars for 10 time steps on GPU 0, enter:
./ecl-bh 100000 10 0
M. Burtscher and K. Pingali. "An Efficient CUDA Implementation of the Tree-based Barnes Hut n-Body Algorithm". Chapter 6 in GPU Computing Gems Emerald Edition, pp. 75-92. January 2011.
[pdf] [pptx] [video]
This work has been supported in part by the National Science Foundation under grants 1141022 and 1406304 as well as by equipment donations from Nvidia Corporation.