torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

Torch installation.. not working! #1020

Open quintendewilde opened 7 years ago

quintendewilde commented 7 years ago

I've tried several reinstalls, updated about everything. Installed the latest cuda. I just can't get both of the install procedures to work. This is the error result for the first procedure.

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
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_THCReduceApplyUtils.cu.o.cmake:207 (message):
  Error generating
  /Users/quintendewilde/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o

CMake Error at THC_generated_THCHalf.cu.o.cmake:207 (message):
  Error generating
  /Users/quintendewilde/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o

CMake Error at THC_generated_THCTensorCopy.cu.o.cmake:207 (message):
  Error generating
  /Users/quintendewilde/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o

CMake Error at THC_generated_THCSleep.cu.o.cmake:207 (message):
  Error generating
  /Users/quintendewilde/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o

CMake Error at THC_generated_THCStorageCopy.cu.o.cmake:207 (message):
  Error generating
  /Users/quintendewilde/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o

CMake Error at THC_generated_THCStorage.cu.o.cmake:207 (message):
  Error generating
  /Users/quintendewilde/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o

CMake Error at THC_generated_THCTensor.cu.o.cmake:207 (message):
  Error generating
  /Users/quintendewilde/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.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/quintendewilde/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
albanD commented 7 years ago

Hello, You can see in this line nvcc fatal : The version ('80100') of the host compiler ('Apple clang') is not supported that the problem is that nvcc is not compatible with your version of clang. This is a common problem for MAC users you should find a solution for it online. I don't remember if you should upgrade CUDA or downgrade clang.

quintendewilde commented 7 years ago

fixed it by going back to cmdline tool 7.2.