Search code examples
cudaartificial-intelligenceneural-networknvcccaffe

Caffe Installation: How to use libc++ instead of clang to power CUDA? (Mac)


I know it dim-witted to do so, but I have to. 'Cause currently CUDA 7.0 doesn't support clang 7.0 while I'm using Xcode 7 beta, and it'll be virtually impossible for me to roll back to Xcode 6.0

NVCC src/caffe/layers/absval_layer.cu
nvcc fatal   : The version ('70000') of the host compiler ('Apple clang') is not supported
make: *** [.build_release/cuda/src/caffe/layers/absval_layer.o] Error 1

Solution

  • The documentation for CUDA 7.0 states that for Mac OS X Clang 6.0 (Xcode 6) is the most recent supported version.