【问题标题】:failed to compile CUDA SDK on Lion无法在 Lion 上编译 CUDA SDK
【发布时间】:2011-09-08 18:17:39
【问题描述】:

我收到以下错误:

/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

知道如何解决这个问题吗?谢谢

【问题讨论】:

    标签: macos cuda osx-lion


    【解决方案1】:

    我通过使 gcc 指向 gcc-4.2 而不是 llvm-gcc 解决了这个问题

    【讨论】:

      猜你喜欢
      • 2011-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多