咖啡安装
Caffe installation
我正在安装 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
没有 return 任何内容。 update-pciids
也无济于事,尽管它 returns Downloaded daily snapshot dated
.
谁能帮我正确安装 Caffe 和所有东西?
您的系统显然没有兼容 CUDA 的 GPU。根据您使用的系统类型(很可能是具有适当空闲 PCI-e 插槽的台式机或服务器、机箱 space 和充足的电源容量),它 可能 可以购买和安装这样的 GPU。
您仍然可以开始使用 Caffe,通过取消注释 Makefile.config
中的 CPU_ONLY
标志而不使用 GPU
可能您没有 CUDA 兼容卡。此外,您可能拥有它,但您没有使用它。即,如果您有 NVidia 卡和集成显卡,则应确保您的显示器已插入 NVidia 卡输出接口。
您应该确保您的显卡在 http://www.geforce.com/hardware/technology/cuda/supported-gpus?field_gpu_type_value=All 确实支持 CUDA。在此列表中找到您的显卡,直到找到您的显卡。
p.s。要查找您的显卡信息,您可以 运行 lspci | grep VGA
在 shell.
Check failed: error == cudaSuccess (38 vs. 0) no CUDA-capable device
is detected
假设你有一块 GPU 卡,如果系统没有安装/使用 NVDIA 驱动程序,就会出现上述错误。
从 Nvidia 站点检查您显卡的最新驱动程序版本。然后添加相关的存储库并通过它进行安装。最好重启
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-3xx
sudo modeporbe nvidia (also ran this before restart)
通过nvidia-smi命令查看
alex@alex-Lenovo-G400s-Touch:~$ nvidia-smi
2 月 28 日星期二 15:10:50 2017
+-----------------------------------------------------------------------------+
| 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 静态linking)
检测到 1 个支持 CUDA 的设备
设备 0:"GeForce GT 720M"
...
之后重新配置 Caffe 并进行干净的 make
下面是供参考的CMake设置和CMake文件http://pastebin.com/qAd40uvh
我正在安装 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
没有 return 任何内容。 update-pciids
也无济于事,尽管它 returns Downloaded daily snapshot dated
.
谁能帮我正确安装 Caffe 和所有东西?
您的系统显然没有兼容 CUDA 的 GPU。根据您使用的系统类型(很可能是具有适当空闲 PCI-e 插槽的台式机或服务器、机箱 space 和充足的电源容量),它 可能 可以购买和安装这样的 GPU。
您仍然可以开始使用 Caffe,通过取消注释 Makefile.config
中的CPU_ONLY
标志而不使用 GPU
可能您没有 CUDA 兼容卡。此外,您可能拥有它,但您没有使用它。即,如果您有 NVidia 卡和集成显卡,则应确保您的显示器已插入 NVidia 卡输出接口。
您应该确保您的显卡在 http://www.geforce.com/hardware/technology/cuda/supported-gpus?field_gpu_type_value=All 确实支持 CUDA。在此列表中找到您的显卡,直到找到您的显卡。
p.s。要查找您的显卡信息,您可以 运行 lspci | grep VGA
在 shell.
Check failed: error == cudaSuccess (38 vs. 0) no CUDA-capable device is detected
假设你有一块 GPU 卡,如果系统没有安装/使用 NVDIA 驱动程序,就会出现上述错误。
从 Nvidia 站点检查您显卡的最新驱动程序版本。然后添加相关的存储库并通过它进行安装。最好重启
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-3xx
sudo modeporbe nvidia (also ran this before restart)
通过nvidia-smi命令查看
alex@alex-Lenovo-G400s-Touch:~$ nvidia-smi 2 月 28 日星期二 15:10:50 2017
+-----------------------------------------------------------------------------+
| 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 静态linking)
检测到 1 个支持 CUDA 的设备
设备 0:"GeForce GT 720M" ...
之后重新配置 Caffe 并进行干净的 make 下面是供参考的CMake设置和CMake文件http://pastebin.com/qAd40uvh