Reputation: 4996
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?
Upvotes: 0
Views: 15003
Reputation: 16309
I had this same issue on windows after I did a custom installation and only selected the "runtime". May be a total coincidence/bad-install but when I re-installed it with these options selected, it worked. It should update your PATH automatically with CUDA_PATH variable
Upvotes: 0
Reputation: 151879
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.
Upvotes: 1