jtchilders/singularity_mpi_test_recipe:mpich

$ singularity pull shub://jtchilders/singularity_mpi_test_recipe:mpich

Singularity Recipe

Bootstrap: docker
From: centos

%setup
   # make directory for test MPI program
   mkdir ${SINGULARITY_ROOTFS}/mpitestapp
   cp pi.c ${SINGULARITY_ROOTFS}/mpitestapp/
   # make directory for MPICH
   mkdir ${SINGULARITY_ROOTFS}/mpich
   cd ${SINGULARITY_ROOTFS}/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 --strip-components=1

%post
   # install development tools
   yum update -y
   yum groupinstall -y "Development Tools"
   yum install -y gcc
   yum install -y gcc-c++
   # yum install -y wget
   # install MPICH
   cd /mpich
   # 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=/mpich/install --disable-wrapper-rpath
   make -j 4 install
   # add to local environment to build pi.c
   export PATH=$PATH:/mpich/install/bin
   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mpich/install/lib
   env | sort
   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-mpich
collection name jtchilders/singularity_mpi_test_recipe
branch master
tag mpich
commit 4aa2e0b529b8cc7696818e10b3761c35727a745b
version (container hash) a19a14aa57285193d52383720ba7c1af
build date 2020-05-06T08:12:52.289Z
size (MB) 775
size (bytes) 225202207
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.