[英]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.