jtchilders/singularity_mpi_test_recipe:openmpi
$ singularity pull shub://jtchilders/singularity_mpi_test_recipe:openmpi
Singularity Recipe
Bootstrap: docker
From: centos
%setup
# make directory for test MPI program
mkdir ${SINGULARITY_ROOTFS}/mpitestapp
# copy test file into directory
cp pi.c ${SINGULARITY_ROOTFS}/mpitestapp/
%post
env | sort
# install development tools
yum update -y
yum groupinstall -y "Development Tools"
yum install -y gcc
yum install -y gcc-c++
yum install -y wget
# build openmpi
mkdir /openmpi
cd /openmpi
wget https://download.open-mpi.org/release/open-mpi/v3.1/openmpi-3.1.0.tar.gz
tar xf openmpi-3.1.0.tar.gz --strip-components=1
# disable the addition of the RPATH to compiled executables
# this allows us to override the MPI libraries to use those
# found via LD_LIBRARY_PATH
./configure --prefix=$PWD/install --disable-wrapper-rpath --disable-wrapper-runpath
make -j 4 install
export LD_LIBRARY_PATH=$PWD/install/lib:$LD_LIBRARY_PATH
export PATH=$PWD/install/bin:$PATH
cd /mpitestapp
mpicc -o pi -fPIC pi.c
%runscript
/mpitestapp/pi
Collection
View on Datalad
Metrics
key | value |
---|---|
id | /containers/jtchilders-singularity_mpi_test_recipe-openmpi |
collection name | jtchilders/singularity_mpi_test_recipe |
branch | master |
tag | openmpi |
commit | 56c9824c6ebb592942fae3df5f748b891f1affb2 |
version (container hash) | bd45c08fb947af0cd3ece2ddec00859c |
build date | 2020-06-30T13:12:53.970Z |
size (MB) | 874 |
size (bytes) | 244748319 |
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.