I am trying to install pytorch with gpu support on my MacBook Pro following official instructions.
Things go smoothly until an error occurred:
[ 70%] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/caffe2_gpu_generated_THCTensorMath.cu.o
nvcc fatal : The version ('90000') of the host compiler ('Apple clang') is not supported
nvcc fatal : The version ('90000') of the host compiler ('Apple clang') is not supported
CMake Error at caffe2_gpu_generated_THCBlas.cu.o.Release.cmake:219 (message):
Error generating
/Users/username/Dev/pytorch-gpu/pytorch/build/cCaMfafkee2 /ECrMraokre Faitle sc/acfaffef2e_2g_pgup_ug.ednierr/a_t_e/da_tTeHnC/Sslrece/pT.HcCu/..o/.cRaeflfeea2s_eg.pcum_agkeen:e2r1a9t e(dm_eTsHsCaBglea)s:.
It seems that CUDA and clang are not working well together.
I searched over internet and found these posts, but they did not solve my problem:
Here's my environment:
- macOS Sierra 10.12.6 (16G1618)
- NVIDIA GeForce GT 750M
- CUDA Driver Version: 387.178
- GPU Driver Version: 378.05.05.25f11
- Cuda compilation tools, release 8.0, V8.0.61
- (Previous)Apple LLVM version 9.0.0 (clang-900.0.39.2)
- (After downgrade)Apple LLVM version 8.1.0 (clang-802.0.42)
- Xcode Version 9.2 (9C40b)