Resolved: nvcc fatal: The version ('70000') of the host compiler ('Apple clang') is not supported

397 views
Skip to first unread message

Daniel J. Milstein

unread,
Sep 29, 2015, 7:43:06 PM9/29/15
to Caffe Users
Salutations, caffe community!

I had a roundabout adventure compiling caffe, and wanted to share my story, in the hope that folk searching the web for the problem can also come to a happy ending.

I use Mac OSX Yosemite, the latest version of XCode, and CUDA 7.5. When compiling, I got the error:
nvcc fatal   : The version ('70000') of the host compiler ('Apple clang') is not supported

Alas! The problem seems to be that the latest version of Apple's clang compiler is unsupported by CUDA.

For CUDA 7.5, the latest supported version of XCode is XCode 6.2. Therefore:
2. I dragged XCode into the Applications folder, and pressed "Keep both" when asked if I wanted to keep the newer version on disk.
3. I opened XCode and went to Preferences->Locations. I selected XCode 6.2 under the Command Line Tools drop-down, and closed the window.

After running "make clean" and "make all", caffe then compiled, and there was much joy and merriment.
Reply all
Reply to author
Forward
0 new messages