Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Singularity

Build a Container

Build a container from a Singularity recipe (ubuntu1604-cuda92-ompi400.def)

Code Block
languagebash
wget https://wiki.ncsa.illinois.edu/download/attachments/82518873/ubuntu1604-cuda92-ompi400.def
singularity build ubuntu1604-cuda92-ompi400.simg ubuntu1604-cuda92-ompi400.def

Pull a container from Singularity Hub or Docker Hub

Code Block
languagebash
singularity pull docker://nvidia/cuda-ppc64le:9.2-cudnn7-devel-ubuntu16.04

Run a Container

Run a container with "exec" command

Code Block
languagebash
mpirun -n 4 singularity exec --nv /opt/apps/samples-image/ubuntu1604-cuda92-ompi400.simg hostname

Run a container with shell

Code Block
languagebash
singularity shell --nv /opt/apps/samples-image/ubuntu1604-cuda92-ompi400.simg