Run the following command in the terminal:
export CUDA_HOME=/usr/local/cuda-X.X
Where you replace X.X by the first two digits of your version number (can be found out e.g. via nvcc --version).
Run the following command in the terminal:
export CUDA_HOME=/usr/local/cuda-X.X
Where you replace X.X by the first two digits of your version number (can be found out e.g. via nvcc --version).