rses-singularity/caffe-gpu:latest
$ singularity pull shub://rses-singularity/caffe-gpu:latest
Singularity Recipe
Bootstrap: docker
From: bvlc/caffe:gpu
%environment
#Environment variables
#Use bash as default shell
SHELL=/bin/bash
#Add CUDA paths
CPATH="/usr/local/cuda/include:$CPATH"
PATH="/usr/local/cuda/bin:$PATH"
LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
CUDA_HOME="/usr/local/cuda"
#Add Caffe paths
CAFFE_ROOT="/opt/caffe"
PYCAFFE_ROOT="$CAFFE_ROOT/python"
PYTHONPATH="$PYCAFFE_ROOT:$PYTHONPATH"
PATH="$CAFFE_ROOT/build/tools:$PYCAFFE_ROOT:$PATH"
export PATH LD_LIBRARY_PATH CPATH CUDA_HOME CAFFE_ROOT PYCAFFE_ROOT PYTHONPATH
%setup
#Runs on host
#The path to the image is $SINGULARITY_ROOTFS
%post
#Post setup script
#Load environment variables
. /environment
#Default mount paths
mkdir /scratch /data /shared /fastdata
%runscript
#Executes with the singularity run command
#delete this section to use existing docker ENTRYPOINT command
%test
#Test that script is a success
Collection
View on Datalad
Metrics
key | value |
---|---|
id | /containers/rses-singularity-caffe-gpu-latest |
collection name | rses-singularity/caffe-gpu |
branch | master |
tag | latest |
commit | 80194c4f6b024fb55a00956a088a00e9b5005679 |
version (container hash) | 216b26df4b421d259975f6d1e7fac399 |
build date | 2019-08-10T23:25:10.616Z |
size (MB) | 3364 |
size (bytes) | 1691676703 |
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.