Open BaTpyIIIka opened 7 years ago
This looks like a problem with nvcc not supporting clang 4.0. This may not be fixed until NVIDIA releases a newer version of the CUDA toolkit.
I've got the same issue but with a different clang
version
im running on mac OSX 10.12.4 and Xcode Version 8.3.1 (8E1000a)
$ clang -v
Apple LLVM version 8.1.0 (clang-802.0.38)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
[ 4%] 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
CMake Error at THC_generated_THCHalf.cu.o.cmake:207 (message):
Error generating
/Users/tylerlindell/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.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/tylerlindell/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
make[2]: CMake Error at THC_generated_THCSleep.cu.o.cmake:207 (message):
Error generating
/Users/tylerlindell/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o
*** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o] Error 1
nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported
CMake Error at THC_generated_THCBlas.cu.o.cmake:207 (message):
Error generating
/Users/tylerlindell/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2
Error: Build error: Failed building.
Here is a compiler combination table: https://github.com/BVLC/caffe/blob/master/docs/install_apt_debian.md#compiler-combinations
CUDA 9 will support clang up to 3.9, and GCC up to 6.0
[ 4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o nvcc fatal : The version ('40000') of the host compiler ('clang') is not supported CMake Error at THC_generated_THCHalf.cu.o.cmake:207 (message): Error generating /home/loki/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o
lib/THC/CMakeFiles/THC.dir/build.make:546: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o' failed make[2]: [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1 make[2]: Waiting for unfinished jobs.... nvcc fatal : The version ('40000') of the host compiler ('clang') is not supported CMake Error at THC_generated_THCSleep.cu.o.cmake:207 (message): Error generating /home/loki/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o