cudanvcc

nvcc not found, despite being on path


I just installed CUDA 8.0 on macOS using the nvidia installer. It was installed at /Developer/NVIDIA.. and as such I prepended my PATH with export PATH=/Developer/NVIDIA/CUDA-8.0.61/bin${PATH:+:${PATH}}.

For some reason, it can't find nvcc (or the other binaries for that matter), despite the path being set and permissions seemingly okay.

~$ echo $PATH /Developer/NVIDIA/CUDA8.0.61/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/share/dotnet:/Library/TeX/texbin ~$ nvcc -bash: nvcc: command not found

Any ideas why this would be the case?


Solution

  • Any ideas why this would be the case?

    Because this is not the correct path:

    /Developer/NVIDIA/CUDA8.0.61/bin
    

    As indicated in the install guide, the correct path is:

    /Developer/NVIDIA/CUDA-8.0.61/bin
                          ^
    

    Note the dash at the indicated location.