...
Code Block |
---|
|
singularity pull docker://nvidia/cuda-ppc64le:9.2-cudnn7-devel-ubuntu16.04 |
Build a "--writable" and/or "--sandbox" container image
...
Run a Singularity Container
Run a container with "exec" command
Code Block |
---|
|
mpirun -n 4 singularity exec --nv /opt/apps/samples-image/ubuntu1604-cuda92-ompi400.simg hostname |
Run a container with shell
Code Block |
---|
|
singularity buildshell --writable cuda-ppc64le.simg docker://nvidia/cuda-ppc64le:9.2-cudnn7-devel-ubuntu16.04nv /opt/apps/samples-image/ubuntu1604-cuda92-ompi400.simg |
Build a writable container
If you wanted to create a container within a writable directory (called a sandbox) you could do so with the "--sandbox
" option. It’s possible to create a sandbox without root privileges, but to ensure proper file permissions it is recommended to do so as root.
Code Block |
---|
|
singularity build --sandbox cuda-ppc64le/ docker://nvidia/cuda-ppc64le:9.2-cudnn7-devel-ubuntu16.0
sudo singularity shell --writable cuda-ppc64le/ |
Run a Singularity Container
...
If users wanted to create a writable ext3 image, user could do so with the "--writable"
option. You must create writable containers as root.
Code Block |
---|
|
mpirun -n 4 singularity execbuild --nv /opt/apps/samples-image/ubuntu1604-cuda92-ompi400.simg hostname |
Run a container with shell
Code Block |
---|
|
singularity shell --nv /opt/apps/samples-image/ubuntu1604-cuda92-ompi400.simgwritable cuda-ppc64le.simg docker://nvidia/cuda-ppc64le:9.2-cudnn7-devel-ubuntu16.04 |
Frequently Asked Questions
...