[ 8%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o
[ 5%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
CMake Error at THC_generated_THCHalf.cu.o.cmake:207 (message):
Error generating
/Users/abc/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o
CMake Error at THC_generated_THCSleep.cu.o.cmake:207 (message):
Error generating
/Users/abc/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:207 (message):
Error generating
/Users/abc/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o
CMake Error at THC_generated_THCBlas.cu.o.cmake:207 (message):
Error generating
/Users/abc/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o
CMake Error at THC_generated_THCStorage.cu.o.cmake:207 (message):
Error generating
/Users/abc/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
make[2]: * [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf
This is not a problem with torch, nvcc is not supported with the latest version of Xcode. You will need to downgrade if you want to use CUDA.
OK, thank you
@pavanky: I downgrade clang version but i still got this error.
do you know to fix it? Thank you.
Hi, I think maybe these link is helpful to you.
Cuda Installation Guide here:
http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#mac-os-version
http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html#system-requirements
Command Line Tools Download here:
https://developer.apple.com/download/more/
if you use OS X 10.11, you need to install Command Line Tools for Xcode 7.2.
if you use OS X 10.12, you need to install Command Line Tools for Xcode 8.2.
you should follow this cuda installation guide.
good luck!
Installing Xcode 7.3 command line tools didn't work for me (macOS 10.12). It solved the clang error, but now I get ld: unexpected token: !tapi-tbd-v2 file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd' for architecture x86_64.