Solvedarrayfire NVCC does not support Apple Clang version 8.x
✔️Accepted Answer
@joseph-zhong, it looks like you're using Xcode 8.3, which CUDA (v8.0.61) does not yet support. :(
Downgrading to CLT 8.2 should work.
For reference:
- Log in to https://developer.apple.com/downloads/
- Download Xcode CLT (Command Line Tools) 8.2
- Install CLT
- Run
sudo xcode-select --switch /Library/Developer/CommandLineTools
- Verify that clang has been downgraded via
clang --version
Other Answers:
I have CUDA 8.0.46, OS X 10.12 and Xcode 8.1 but still have the same issue.
First of all, CUDA 8.0 isn't widely available yet as it hasn't been officially released. Second, even CUDA 8 doesn't work with the current version of the Apple LLVM (version 8.0.0). It produces the following error message:
nvcc fatal : The version ('80000') of the host compiler ('Apple clang') is not supported
To switch Xcode CLT back to 8.1 run this:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Great news - CUDA 8.0.55 now supports Xcode 8!
Those of you who downgraded to CLT 7.3 need to upgrade to CLT 8.x, otherwise building the CUDA backend will fail due to a missing <string.h>
.
Error message:
nvcc fatal : The version ('80000') of the host compiler ('Apple clang') is not supported
Steps to fix:
sudo xcode-select --switch /Library/Developer/CommandLineTools
clang --version
Source: http://stackoverflow.com/a/36590330/701646
Edit: Update to 7.3 and fail at 8.0