我有一台安装了Xcode7.3.1和Xcode8.0的Mac dev机器。
在更新到CUDA 8之后,我将系统设置为使用Xcode 7.3.1命令行工具,因为nvcc 8.0目前不支持Xcode 8命令行工具。
在将OS X 10.11El Capitan更新到macOS 10.12Sierra之后,我不再能够使用CUDA8编译hello world程序。
编译失败,输出包含数百行/usr/include标头,以:
/usr/include/stdio.h(133): error: expected a ")"
/usr/include/stdio.h(134): error: expected a ")"
/usr/include/stdio.h(134): error: "_Nullable" has already been declared in the current scope
发布于 2016-10-19 23:29:39
我下载并重新安装了在操作系统更新过程中似乎已经损坏的Command Line Tools (OS X 10.11) for Xcode 7.3.1
。
nvcc 8.0现在可以正常工作。
https://stackoverflow.com/questions/40135776
复制相似问题