anushree85/singularity_imgs:wilson_caffe_0.15_dann_cuda7.5_cudnn5
$ singularity pull shub://anushree85/singularity_imgs:wilson_caffe_0.15_dann_cuda7.5_cudnn5
Singularity Recipe
# Ubuntu 14.04 based container with CUDA 7.5 and cuDNN 5.1 (and python)
BootStrap: docker
From: nvidia/cuda:7.5-cudnn5-devel-ubuntu14.04
%help
You're on your own.
%labels
Maintainer anushreephy@gmail.com
CUDA 7.5
cuDNN 5
OS Ubuntu14.04
%environment
export CUDA_ROOT=/usr/local/cuda/
export CUDA_HOME=/usr/local/cuda/
export PATH=$PATH:/usr/local/NVIDIA-Linux-x86_64/:$CUDA_ROOT/bin
export LD_LIBRARY_PATH=/usr/local/NVIDIA-Linux-x86_64/:$CUDA_ROOT/lib64
%post
# not sure if they all are required?
# following J. Simone here
mkdir /scratch /data /project /lqcdproj
##### INSTALL ALL DEPENDENCIES #####
apt update && apt install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
git \
libatlas-base-dev \
libboost-all-dev \
libgflags-dev \
libgoogle-glog-dev \
libhdf5-serial-dev \
libleveldb-dev \
liblmdb-dev \
libopencv-dev \
libprotobuf-dev \
libsnappy-dev \
protobuf-compiler \
graphviz \
python-dev \
python-numpy \
python-pip \
python-pydot \
python-setuptools \
python-scipy \
python-tk \
rsync \
software-properties-common \
time \
unzip \
vim \
zip \
wget
# clean after apt
rm -rf /var/lib/apt/lists/*
##### INSTALL NCLL #####
#cd /opt/
#git clone https://github.com/NVIDIA/nccl.git
#cd nccl/
#make
#make install
#cd ../
#rm -rf nccl
##### INSTALL CAFFE #####
# get Caffe source code (NO DANN included)
cd /opt/
# to avoid "Problem with the SSL CA cert (path? access rights?)"
update-ca-certificates
git clone -b caffe_0.15_dann --depth 1 https://github.com/anushree85/caffe.git
cd caffe/
# install python packages for Caffe
pip install --upgrade pip
# during build from recipe file pip install ipython>=3.0.0 try to install
# sed is added to force ipython < 6
for req in $(cat python/requirements.txt | sed 's/ipython>=3.0.0/ipython>=3.0.0,<6/g') pydot
do
pip install $req
done
# make Caffe
mkdir build
cd build/
#cmake -DUSE_CUDNN=1 -DUSE_NCCL=1 ..
cmake -DUSE_CUDNN=1 ..
make
make pycaffe
%runscript
exec /opt/caffe/build/tools/caffe
Collection
- Name: anushree85/singularity_imgs
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/anushree85-singularity_imgs-wilson_caffe_0.15_dann_cuda7.5_cudnn5 |
collection name | anushree85/singularity_imgs |
branch | master |
tag | wilson_caffe_0.15_dann_cuda7.5_cudnn5 |
commit | d8093c4b05dc3150899723a3cbe156b7328572ce |
version (container hash) | 1d39358bfd76f98e55e3c169c16c2b1a |
build date | 2018-05-30T12:30:56.363Z |
size (MB) | 2522 |
size (bytes) | 1103200287 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.