This Tutorial based on 10flow.com

sudo apt-get install libgtk2.0-dev libglew-dev glew-utils libdevil-dev libboost-all-dev libatlas-cpp-0.6-dev libatlas-base-dev imagemagick libcminpack-dev libgfortran3 libmetis-edf-dev libparmetis-dev freeglut3-dev libgsl-devsudo apt install nvidia-384sudo apt-get install nvidia-cuda-dev nvidia-cuda-toolkit