Revert Apple Clang Version For NVCC

Jude Michael Murphy picture Jude Michael Murphy · Mar 27, 2016 · Viewed 20.3k times · Source

I am trying to run NVCC to compile a CUDA program on my Mac.

When I try to run NVCC, I am receiving the following error: "nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported".

I recently updated my XCode version to 7.3, and my Mac to 10.11.4.

Is there any way to revert my Clang Version?

Answer

szha picture szha · Apr 13, 2016
  1. Go to https://developer.apple.com/downloads/, log in and then download http://adcdownload.apple.com/Developer_Tools/Command_Line_Tools_OS_X_10.11_for_Xcode_7.2/Command_Line_Tools_OS_X_10.11_for_Xcode_7.2.dmg, and install, as was suggested by fabregaszy.
  2. Run the following command to switch to the old version: sudo xcode-select --switch /Library/Developer/CommandLineTools
  3. Run the following command to quickly check clang version: clang --version