在 Lion 上编译 CUDA SDK 失败
我收到以下错误:
/usr/include/libkern/i386/_OSByteOrder.h(60): error: identifier "__builtin_bswap32" is undefined
/usr/include/libkern/i386/_OSByteOrder.h(74): error: identifier "__builtin_bswap64" is undefined
../../common/inc/cutil_inline_runtime.h(176): error: class "cudaDeviceProp" has no member "tccDriver"
../../common/inc/cutil_inline_runtime.h(201): error: class "cudaDeviceProp" has no member "tccDriver"
../../common/inc/cutil_inline_runtime.h(307): error: identifier "CUFFT_UNALIGNED_DATA" is undefined
知道如何解决这个问题吗?谢谢
I got the following errors:
/usr/include/libkern/i386/_OSByteOrder.h(60): error: identifier "__builtin_bswap32" is undefined
/usr/include/libkern/i386/_OSByteOrder.h(74): error: identifier "__builtin_bswap64" is undefined
../../common/inc/cutil_inline_runtime.h(176): error: class "cudaDeviceProp" has no member "tccDriver"
../../common/inc/cutil_inline_runtime.h(201): error: class "cudaDeviceProp" has no member "tccDriver"
../../common/inc/cutil_inline_runtime.h(307): error: identifier "CUFFT_UNALIGNED_DATA" is undefined
Any idea how to solve this problem? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过使 gcc 指向 gcc-4.2 而不是 llvm-gcc 解决了该问题
I fixed the problem by making gcc point to gcc-4.2 instead of llvm-gcc