恢复 NVCC 的 Apple Clang 版本 [英] Revert Apple Clang Version For NVCC
本文介绍了恢复 NVCC 的 Apple Clang 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行 NVCC 以在我的 Mac 上编译 CUDA 程序.
I am trying to run NVCC to compile a CUDA program on my Mac.
当我尝试运行 NVCC 时,我收到以下错误:nvcc fatal : The version ('70300') of the host compiler ('Apple clang') is not supported".
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".
我最近将我的 XCode 版本更新到 7.3,我的 Mac 更新到 10.11.4.
I recently updated my XCode version to 7.3, and my Mac to 10.11.4.
有没有办法恢复我的 Clang 版本?
Is there any way to revert my Clang Version?
推荐答案
- 前往https://developer.apple.com/downloads/,登录后下载http://adcdownload.apple.com/Developer_Tools/Command_Line_Tools_OS_X_10.11_for_Xcode_7.2/Command_Line_Tools_OS_X2.dmg,然后按照 fabregaszy 的建议进行安装.
- 运行以下命令切换到旧版本:
sudo xcode-select --switch/Library/Developer/CommandLineTools
- 运行以下命令快速查看 clang 版本:
clang --version
- 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.
- Run the following command to switch to the old version:
sudo xcode-select --switch /Library/Developer/CommandLineTools
- Run the following command to quickly check clang version:
clang --version
这篇关于恢复 NVCC 的 Apple Clang 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文