我正在安装Caffe。 我正在使用Ubuntu 14.04。
我试图安装cuda。在Caffe网站上写道,我需要单独安装库和最新的独立驱动程序。
我从there下载了驱动程序。我尝试了每种产品类型,但我得到了同样的错误:
You do not appear to have an NVIDIA GPU supported by the 346.46
NVIDIA Linux graphics driver installed in this system. For further
details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in
the README available on the Linux driver download page at www.nvidia.com.
然后
You appear to be running an X server; please exit X before
installing. For further details, please see the section INSTALLING
THE NVIDIA DRIVER in the README available on the Linux driver
download page at www.nvidia.com.
和
Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find
suggestions on fixing installation problems in the README available
on the Linux driver download page at www.nvidia.com.
我成功安装了cuda和cuDNN。
然后我从here下载了Caffe。
然后我尝试编译并在完成make all
和make test
后,
我做了make runtest
并收到此错误:
Check failed: error == cudaSuccess (38 vs. 0) no CUDA-capable device is detected
此外,我发现我需要验证我有一个支持CUDA的GPU。
此命令:lspci | grep -i nvidia
不返回任何内容。 update-pciids
也没有帮助,但它返回Downloaded daily snapshot dated
。
任何人都可以帮我安装Caffe和一切吗?
答案 0 :(得分:5)
您的系统显然没有兼容CUDA的GPU。根据您使用的系统类型(很可能是具有适当的免费PCI-e插槽的桌面或服务器,外壳空间和足够的电源容量),可能可以购买并安装这样的GPU。
仍然可以通过在Makefile.config中取消注释CPU_ONLY
标志而不使用GPU来开始使用Caffe
答案 1 :(得分:0)
检查失败:错误== cudaSuccess(38对0)没有支持CUDA的设备 被检测到
假设您有GPU卡,如果系统未安装/使用NVDIA驱动程序,则会出现上述错误。
从Nvidia网站查看最新的驱动程序版本以获取您的卡。然后添加相关的存储库并通过它安装。最好重启
sudo apt-add-repository ppa:graphics-drivers / ppa
sudo apt-get update
sudo apt-get install nvidia-3xx
sudo modeporbe nvidia(在重新启动之前也运行了这个)
通过nvidia-smi命令检查
alex @ alex-Lenovo-G400s-Touch:〜$ nvidia-smi 2月28日星期二15:10:50
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.39 Driver Version: 375.39 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GT 720M Off | 0000:01:00.0 N/A | N/A |
| N/A 51C P0 N/A / N/A | 271MiB / 1985MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
在制作样本后通过deviceQuery安装样本并进行测试 - > http://xcat-docs.readthedocs.io/en/stable/advanced/gpu/nvidia/verify_cuda_install.html
CUDA设备查询(运行时API)版本(CUDART静态链接)
检测到1个CUDA功能设备
设备0:" GeForce GT 720M" ...
之后重新配置Caffe并做一个干净的制作 以下是参考的CMake设置和CMake文件http://pastebin.com/qAd40uvh
答案 2 :(得分:-1)
可能你没有CUDA兼容卡。此外,您可能拥有它,但您没有使用它。即如果您有NVidia卡和集成显卡,则应确保显示器已插入NVidia卡输出接口。
您应该确保您的图形卡确实在http://www.geforce.com/hardware/technology/cuda/supported-gpus?field_gpu_type_value=All支持CUDA。在此列表中找到您的图形卡,直到找到您的卡。
P.S。要查找您的图形卡信息,您可以在shell中运行lspci | grep VGA
。