Ceci est une ancienne révision du document !
Using Singularity for Deep-learning
Overview
Singularity is a container solution that promotes reproducible science by giving researchers the ability to run their scientific applications and workflows in a variety of different Linux-based operating system (OS) environments.
Using Singularity with Docker containers
We can use Singularity's pull sub-command to import a container image directly from Docker Hub without having root or superuser privileges (or Docker) on your host system.
For example, to use Singularity to import the image of the latest Tensorflow (GPU version) into the present working directory.
$ singularity pull tensorflow-gpu.simg docker://tensorflow/tensorflow:latest-gpu
Notice that we prepend the original URL with
docker://
prefix.
This will download and build singularity image named tensorflow-gpu.simg
We can spawn an interactive shell within a container with the shell sub-command.
$ singularity shell --nv tensorflow-gpu.simg
The parameter –nv is mandatory for GPU applications.