Lattice Boltzmann Reference Code: simple implementations in Serial C, CUDA, and using the OCCA portability library.
To clone from github:
git clone https://github.com/tcew/lbm
make serial
./serialLBM images/fsm.png 400
make cuda
./cudaLBM images/fsm.png 400
git clone https://github.com/libocca/occa occa
cd occa
make -j
export OCCA_DIR=pwd
cd ../../
make -f makefile.occa
make -f makefile.occa
./occaLBM images/fsm.png 400
ffmpeg -start_number 0 -r 24 -i bah%06d.png -c:v mpeg4 test.mp4