- Setup some environment variables so
nvcc
is on$PATH
. Add the following lines to your~/.bashrc
file.
# Add this to your .bashrc file
export CUDA_HOME=/usr/local/cuda
# Adds the CUDA compiler to the PATH
export PATH=$CUDA_HOME/bin:$PATH
# Adds the libraries