【问题标题】:How to set CUDA on Yosemite?如何在优胜美地设置 CUDA?
【发布时间】:2015-06-19 08:21:19
【问题描述】:

我已经升级到 Yosemite 但nvcc 不喜欢新的gcc4.9

gcc: warning: couldn’t understand kern.osversion ‘14.0.0
gcc: warning: couldn’t understand kern.osversion ‘14.0.0
In file included from /Developer/NVIDIA/CUDA-5.0/bin/../include/cuda_runtime.h:59:0,
                 from <command-line>:0:
/Developer/NVIDIA/CUDA-5.0/bin/../include/host_config.h:82:2: error: #error -- unsupported GNU version! gcc 4.7 and up are not supported!
 #error -- unsupported GNU version! gcc 4.7 and up are not supported!

我使用的是旧的 GeForce9400M,但驱动程序可以正常工作。 这是使用 nvcc 5.0 编译的 DeviceQuery:

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce 9400M"
  CUDA Driver Version / Runtime Version          6.5 / 5.0

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 6.5, CUDA Runtime Version = 5.0, NumDevs = 1, Device0 = GeForce 9400M

这是使用 nvcc 6.5 编译的 DeviceQuery:

dyld: Library not loaded: @rpath/libcudart.dylib
  Referenced from: /Developer/NVIDIA/CUDA-5.0/samples/1_Utilities/deviceQuery/./deviceQuery
  Reason: Incompatible library version: deviceQuery requires version 1.1.0 or later, but libcudart.dylib provides version 0.0.0
Trace/BPT trap: 5

我应该如何设置 Yosemite 以使用 CUDA?

【问题讨论】:

  • 您尝试执行的操作行不通。 CUDA 5.0 与 Yosemite 不兼容,提供宿主工具链 CUDA 5.0 需求的 Xcode/SDK 版本也不兼容。
  • NVIDIA 表示已弃用对带有 SM1.x 的老一代 GPU 的驱动程序支持。按照这些说明devtalk.nvidia.com/default/topic/627626/… 我的驱动程序仍然有效。你认为我可以在 Yosemite 上使用 CUDA 6.5 和 SM1.x 吗?
  • 最后,它在安装 CUDAToolkit6.0 将 CUDAdriver 降级到 4.2.10,然后仅将 CUDAdriver 升级到 6.5 后工作...我仍然收到警告 nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release. 我想这意味着我不应该升级到 6.5 工具包

标签: gcc cuda nvcc osx-yosemite


【解决方案1】:

解决方案:

1) 安装CUDAToolkit6.0

2) 将 CUDAdriver 降级到 4.2.10,

3) 仅将 CUDAdriver 升级到 6.5!!!...

我仍然收到警告 nvcc 警告:“compute_10”和“sm_10”架构已弃用,可能会在未来的版本中删除。

我在 nvidia 教程上问过这个问题,答案是“硬件更新”

因此,我将远离 6.5 Toolkit 或新的更新。

【讨论】:

    猜你喜欢
    • 2015-07-19
    • 2014-12-14
    • 1970-01-01
    • 1970-01-01
    • 2015-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多