michael-tn/mpi-hello-world:ompi212
$ singularity pull shub://michael-tn/mpi-hello-world:ompi212
Singularity Recipe
BootStrap: docker
From: ubuntu:latest
%post
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# this will install all necessary packages and prepare the container
apt-get -y update
apt-get -y install make build-essential zlib1g-dev libncurses5-dev wget git
echo "Get and Build openmpi"
cd /usr/local/src
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.2.tar.bz2
tar -xjf openmpi-2.1.2.tar.bz2
cd openmpi-2.1.2
./configure --prefix=/usr/local --with-hwloc
make -j4
make install
ldconfig
echo "Get and Build mpi_hello_world"
mkdir /usr/local/src/git
cd /usr/local/src/git
git clone https://github.com/wesleykendall/mpitutorial
cd mpitutorial/tutorials/mpi-hello-world/code
make
cp mpi_hello_world /usr/local/bin
Collection
- Name: michael-tn/mpi-hello-world
- License: None
View on Datalad
Metrics
| key | value |
|---|---|
| id | /containers/michael-tn-mpi-hello-world-ompi212 |
| collection name | michael-tn/mpi-hello-world |
| branch | master |
| tag | ompi212 |
| commit | a0b6b583c42deb7aa583c064867bf9f0883aebc7 |
| version (container hash) | 1d917ac4a26c45f0e5ffdc7d79fdd1c9 |
| build date | 2017-10-20T18:53:21.561Z |
| size (MB) | 687 |
| size (bytes) | 197201951 |
| 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.