前回インストールに失敗したため、再チャレンジ
インストール
・AzureのUbuntu 14.04.4 LTSで実施
・インストールしたのは少し前のため、曖昧なためあくまで参考程度に
・以下に沿ってインストールした
GPUなしのNVIDIA DIGITS3で始めるDeepLearning
ubuntu初期設定
aptitude update aptitude upgrade dpkg-reconfigure tzdata aptitude install language-pack-ja-base language-pack-ja lv apt-show-versions update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja" source /etc/default/locale
caffeのインストール
cat digits.sh ===== #!/bin/bash CUDA_REPO_PKG=cuda-repo-ubuntu1404_7.5-18_amd64.deb && wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/$CUDA_REPO_PKG && dpkg -i $CUDA_REPO_PKG ML_REPO_PKG=nvidia-machine-learning-repo_4.0-2_amd64.deb && wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1404/x86_64/$ML_REPO_PKG && dpkg -i $ML_REPO_PKG ===== ./digits.sh cat digits2.sh ===== #!/bin/bash DHOME=/usr/local/src/ aptitude install git cd $DHOME git clone --branch caffe-0.14 https://github.com/NVIDIA/caffe.git export CAFFE_HOME=${DHOME}/caffe aptitude install \ libgflags-dev libgoogle-glog-dev libopencv-dev \ libleveldb-dev libsnappy-dev liblmdb-dev libhdf5-serial-dev \ libprotobuf-dev protobuf-compiler libatlas-base-dev \ python-dev python-pip python-numpy gfortran # aptitude install --no-install-recommends libboost-all-dev aptitude install libboost-all-dev cd $CAFFE_HOME cat python/requirements.txt | xargs -n1 pip install ===== ./digits2.sh cd /usr/local/src/caffe/ cp Makefile.config.example Makefile.config vi Makefile.config diff Makefile.config.example Makefile.config 8c8 < # CPU_ONLY := 1 --- > CPU_ONLY := 1 cat digits3.sh ===== #!/bin/bash aptitude install cmake libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libboost-all-dev libatlas-base-dev python-dev libgflags-dev libgoogle-glog-dev liblmdb-dev git g++-4.6 python-protobuf CAFFE_HOME=/usr/local/src/caffe cd $CAFFE_HOME mkdir build cd build cmake .. make --jobs=4 ===== ./digits3.sh
DIGITSのインストール
aptitude update aptitude install digits cd /usr/share/digits python -m digits.config.edit -v ... ==================================== Caffe ===================================== Where is caffe installed? Suggested values: (U) [unset] (*) [Previous] /usr/local/src/caffe (P) [PATH/PYTHONPATH] <PATHS> ... stop nvidia-digits-server start nvidia-digits-server
注意点
CAFFE_HOMEを/root/caffeにするとうまくいかなかった