sanchezivan/singularity_image_recipes:mpich33
$ singularity pull shub://sanchezivan/singularity_image_recipes:mpich33
Singularity Recipe
Bootstrap: docker
From: centos
%setup
# make directory for test MPI program
mkdir ${SINGULARITY_ROOTFS}/mpitestapp
cp example_codes/pi.c ${SINGULARITY_ROOTFS}/mpitestapp/
%post
# install development tools
yum update -y
yum groupinstall -y "Development Tools"
yum install -y gcc gcc-c++ wget
yum install -y epel-release
yum install -y python-pip
yum update -y
pip install numpy
# install MPICH
wget -q http://www.mpich.org/static/downloads/3.2.1/mpich-3.2.1.tar.gz
tar xf mpich-3.2.1.tar.gz
rm mpich-3.2.1.tar.gz
cd mpich-3.2.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=/usr/local/mpich/install --disable-wrapper-rpath
make -j 4 install
# add to local environment to build pi.c
export PATH=$PATH:/usr/local/mpich//install/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpich//install/lib
env | sort
cd ..
rm -rf mpich-3.2.1
%environment
export PATH=/usr/local/mpich/install/bin/:${PATH}
export LD_LIBRARY_PATH=/usr/local/mpich/install/lib/:${LD_LIBRARY_PATH}
%runscript
/mpitestapp/pi
Collection
- Name: sanchezivan/singularity_image_recipes
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/sanchezivan-singularity_image_recipes-mpich33 |
collection name | sanchezivan/singularity_image_recipes |
branch | master |
tag | mpich33 |
commit | da8c885dde34aa9a3925f2617734a022cdcb328f |
version (container hash) | 732ab7780103eb9f20e2ed7ecc542c02 |
build date | 2019-05-25T06:40:09.481Z |
size (MB) | 756 |
size (bytes) | 257978399 |
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.