I ran into the same issue on Slackware64 13.37.
Set the su -c "make install"
switch to root (0bv10u5Ly), so CUDA_ROOT
must be installed in the root profile. CUDA_ROOT
not an environment variable that setup.py uses. Add / usr / local / cuda / bin to PATH and define CUDA_ROOT=/usr/local/cuda/bin
, then try installing again.
This is a quick and dirty way, but if none of the above actions are for you, like me below will definitely work. (
Remove
nvcc_path = search_on_path(["nvcc", "nvcc.exe"]) if nvcc_path is None: print("*** CUDA_ROOT not set, and nvcc not in path. Giving up.") sys.exit(1)
and install
cuda_root_default = "/usr/local/cuda/bin"
in the setup.py file. Then try su -c "make install"
.
y33t
source share