[英]How to set CUDA on 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
我应该如何设置优胜美地使用CUDA?
解:
1)安装CUDAToolkit6.0
2)将CUDAdriver降级到4.2.10,
3)仅将CUDAdriver升级到6.5!
我仍然收到nvcc警告:'compute_10'和'sm_10'体系结构已被弃用,将来的发行版中可能会删除它们。
我在nvidia教程上问了这个问题,答案是“硬件更新”
因此,我将远离6.5 Toolkit或新更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.