I’m trying to build Pytorch, but for some reason it fails consistently on same stage. CUDA 8.0.90 and cuDNN 6.0 installed. Clang version below:
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Environment for build:
declare -x CMAKE_PREFIX_PATH="/adaconda2/bin/conda"
declare -x CUDA_HOME="/Developer/NVIDIA/CUDA-8.0"
declare -x CUDNN_INCLUDE_DIR="/Developer/NVIDIA/CUDA-8.0/include"
declare -x CUDNN_LIB_DIR="/Developer/NVIDIA/CUDA-8.0/lib"
declare -x DYLD_LIBRARY_PATH="/Developer/NVIDIA/CUDA-8.0/lib"
Build command:
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
Build error message:
-clip-
clang -bundle -undefined dynamic_lookup -L/anaconda2/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.6-x86_64-2.7/torch/csrc/nvrtc.o -L/Users/pekka/src/pytorch/torch/lib -L/Developer/NVIDIA/CUDA-8.0/lib -L/Developer/NVIDIA/CUDA-8.0/lib -L/Developer/NVIDIA/CUDA-8.0/lib/stubs -L/anaconda2/lib -o build/lib.macosx-10.6-x86_64-2.7/torch/_nvrtc.so -Wl,-rpath,/Developer/NVIDIA/CUDA-8.0/lib -Wl,-rpath,/Developer/NVIDIA/CUDA-8.0/lib -Wl,-rpath,@loader_path/lib -lcuda -lnvrtc
ld: library not found for -lcuda
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command ‘clang’ failed with exit status 1
I’m running OS X 10.11.6 on mid-2014 Macbook Pro with NVIDIA 650M GPU.