zhcf/caffe_singularity_images:latest

$ singularity pull shub://zhcf/caffe_singularity_images:latest

Singularity Recipe

Bootstrap: docker
From: nvidia/cuda:8.0-cudnn6-devel-ubuntu16.04

%post
    # remove cuda drivers
    apt-get update && apt-get install -y --no-install-recommends \
        build-essential \
        cmake \
        git \
        wget \
        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 \
        python-dev \
        python-numpy \
        python-pip \
        python-setuptools \
        python-scipy && \
    rm -rf /var/lib/apt/lists/*

%post
    cd /opt
    git clone -b 1.0 --depth 1 https://github.com/BVLC/caffe.git
    pip install -U pip~=9.0
    cd caffe/python
    for req in $(cat requirements.txt) pydot; do pip install $req; done
    cd ..
    git clone https://github.com/NVIDIA/nccl.git && cd nccl && make -j install && cd .. && rm -rf nccl
    mkdir build && cd build
    cmake -DUSE_CUDNN=1 -DUSE_NCCL=1 .. && \
    make -j"$(nproc)"

%environment
    PYTHONPATH=/opt/caffe/python:$PYTHONPATH
    PATH=/opt/caffe/build/tools:/opt/caffe/python:$PATH
    export PYTHONPATH PATH

%post
    echo "/opt/caffe/build/lib" >> /etc/ld.so.conf.d/caffe.conf && ldconfig

Collection


View on Datalad

Metrics

key value
id /containers/zhcf-caffe_singularity_images-latest
collection name zhcf/caffe_singularity_images
branch master
tag latest
commit dedc46a5e874ec109e4f077e12adf75d9337086f
version (container hash) 6818e4fd1ff0911c54efba93524b02bd
build date 2018-07-08T15:19:20.919Z
size (MB) 3206
size (bytes) 1628778527
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.