简体   繁体   English

如何在优胜美地设置CUDA?

[英]How to set CUDA on Yosemite?

I have upgraded to Yosemite but nvcc doesn't like the new gcc4.9 我已经升级到优胜美地,但是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!

I'm using an old GeForce9400M but the driver is working. 我正在使用旧的GeForce9400M,但驱动程序正在运行。 This is the DeviceQuery compiled with nvcc 5.0: 这是使用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

This is the DeviceQuery compiled with nvcc 6.5: 这是使用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

How should I set Yosemite to use CUDA? 我应该如何设置优胜美地使用CUDA?

Solution: 解:

1) installing CUDAToolkit6.0 1)安装CUDAToolkit6.0

2) downgrade CUDAdriver to 4.2.10, 2)将CUDAdriver降级到4.2.10,

3) upgrade CUDAdriver to 6.5 ONLY!!!... 3)仅将CUDAdriver升级到6.5!

I still get a warning nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release. 我仍然收到nvcc警告:'compute_10'和'sm_10'体系结构已被弃用,将来的发行版中可能会删除它们。

I asked this on a nvidia tutorial and the answer was "Hardware Update" 我在nvidia教程上问了这个问题,答案是“硬件更新”

Hence I will stay away from 6.5 Toolkit or new updates. 因此,我将远离6.5 Toolkit或新更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM