Skip to content

Instantly share code, notes, and snippets.

@lukeyeager
Last active May 16, 2017 21:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lukeyeager/ba948f1d56e4ab407874 to your computer and use it in GitHub Desktop.
Save lukeyeager/ba948f1d56e4ab407874 to your computer and use it in GitHub Desktop.
Install DIGITS and NVcaffe on CentOS 7
# nvidia-docker run -ti nvidia/cuda:7.0-devel-centos7
yum update
yum install epel-release
yum install gcc gcc-c++ git vim python-devel python-pip make cmake \
blas-devel lapack-devel openblas-devel \
protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel gflags-devel glog-devel lmdb-devel libjpeg-devel libpng-devel
# Too old:
# yum install Cython scipy python-matplotlib
yum install numpy python-pandas python-imaging protobuf-python h5py
yum-builddep python-matplotlib
cd ~
git clone https://github.com/NVIDIA/caffe.git
cd caffe
cat python/requirements.txt | xargs -n1 pip install
mkdir build
cd build
cmake .. -DBLAS=Open
make -j12
# DIGITS
yum install python-gevent python-flask python-flask-wtf
cd ~
git clone https://github.com/NVIDIA/digits.git
cd digits
cat requirements.txt | xargs -n1 pip install
export CAFFE_HOME=~/caffe
./digits-devserver
@elliotekoch
Copy link

darn i lost my hacks. for sure the declaration issues are in these files:
find /root/caffe -type f -exec grep -l UINT8_MAX {} ; | & tee found_unit.log
/root/caffe/include/caffe/layers/detectnet_transform_layer.hpp
/root/caffe/src/caffe/layers/detectnet_transform_layer.cpp
/root/caffe/src/caffe/layers/detectnet_transform_layer.cu

I'll try to redo them.... if you can get it before i do please let me know.

thanks
Elliot

@elliotekoch
Copy link

elliotekoch commented May 16, 2017

Luke, here are my proposed changes to the Centos 7 installation. Please be so kind as to review and advise. If you agree, I would like to see these fixes or whatever you think is better into the mainstream code.

still trying to figure out how the pull request mechanism works, so here is the link in the meantime:

https://github.com/elliotekoch/Fixes-for-Digits-installation-on-Centos-7

Thanks,
Elliot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment