Cuda Clang 和 OS X Mavericks [英] Cuda Clang and OS X Mavericks
问题描述
我目前正在尝试在 MacOS 10.9 上使用 Cmake 构建一个 Cuda 项目.我的 C 和 C++ 编译器是 gcc,但似乎因为 Mavericks gcc 和 g++ 链接到了 CUDA 不支持的 clang.
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,或者让 clang 在没有dumpspecs"的情况下工作?
Has anyone found a good solution to use the real gcc, or to make clang work without "dumpspecs"?
推荐答案
10.9 的问题在于 gcc
实际上是 clang.请尝试最新的 CUDA 工具包并明确指出 NVCC 使用/usr/bin/clang (nvcc -ccbin/usr/bin/clang).这样 NVCC 就会知道它正在处理 clang.
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.
这篇关于Cuda Clang 和 OS X Mavericks的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!