Cuda Clang和OS X Mavericks
我目前正试图在MacOS 10.9上使用Cmake建立一个Cuda项目。我的C和C ++编译器是gcc,但似乎自Mavericks gcc和g ++链接到clang,这是不支持CUDA。
I'm currently trying to build a Cuda project with Cmake on MacOS 10.9. My C and C++ compiler are gcc, but it seems that since Mavericks gcc and g++ links to clang, which is not supported by CUDA.
有没有人找到一个好的解决方案来使用真正的gcc,或使铛工作没有dumpspecs?
Has anyone found a good solution to use the real gcc, or to make clang work without "dumpspecs"?
10.9的问题是 gcc
实际上是。。请尝试最新的CUDA工具包,并明确指向NVCC使用/ usr / bin / clang(nvcc -ccbin / usr / bin / clang)。这样NVCC将知道它正在处理cl。
The issue with 10.9 is that gcc
is actually clang. Please try latest CUDA toolkit and explicitely point NVCC to use /usr/bin/clang (nvcc -ccbin /usr/bin/clang). This way NVCC will know it's dealing with clang.