Caffe 環境建置(問題集)
Q1:於Ubuntu 14.04,編譯Caffe遇到“Detected version of Boost is too old. Requested version was 1.55”的錯誤。

A1:由於Ubuntu 14.04系統中安裝libboost-all-dev時所選擇的Boost版本為晝,但在Caffe(CAFFE_TAG=1.0)中,需要Boost高於1.55,因此clone Caffe時,不特別指定CAFFE_TAG=1.0即可。
git clone -b ${CAFFE_TAG} --depth 1 https://github.com/BVLC/caffe.git
Q2:執行Caffe遇到cudnn_conv_layer.cpp:53] Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0) CUDNN_STATUS_NOT_INITIALIZED的錯誤。

A2:可能為cuda與cudnn版本衝突所造成。
找到問題(執行check指令):
root@49ee0d654821:~/caffe# dpkg -l | grep cud
找到問題(執行check指令):
root@49ee0d654821:~/caffe# dpkg -l | grep cud
輸出(cuda8? cuda9?):

找到原因apt-get upgrade,更新了cudnn所造成。


可以利用apt-mark鎖定package不更新。
apt-mark hold libcudnn7 libcudnn7-dev
留言
張貼留言