# install GCC 6 and link the compiler in cuda bin folder
ln -sf usr/bin/gcc-6 usr/share/cuda/bin/gcc
ln -sf usr/bin/g++-6 usr/share/cuda/bin/g++