OS: macOS High Sierra 10.13.6 (17G2307)
Xcode: 10.1 (10B61)
Apple LLVM: 10.0.0
CUDA Toolkit: 10.1 with cuDNN for CUDA 10.1
I successfully built/installed PyTorch from source. Then went to build/install Torch Vision but kept running into this error:
ld: warning: -L path '/usr/local/cuda/lib64' is not a directory
ld: library not found for -lcudart
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang++' failed with exit status 1
Something about the build is pointing to '/usr/local/cuda/lib64'
even though the newest CUDA 10.1 installation uses '/usr/local/cuda/lib'
.
As a fix, I duplicated the '/usr/local/cuda/lib'
folder, renamed it '/usr/local/cuda/lib64'
and the build worked.