export CUDA_HOME=$(dirname $(dirname $(which nvcc))) export PATH=$CUDA_HOME/bin:$PATH export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH