From a250ace88c2e4902178284618f735d748216d38f Mon Sep 17 00:00:00 2001 From: Maximilian Meindl <maximilian.meindl@univie.ac.at> Date: Thu, 1 Jun 2023 12:25:35 +0000 Subject: [PATCH] Upload ubuntu-mpi.def --- models/ICON/ubuntu-mpi.def | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 models/ICON/ubuntu-mpi.def diff --git a/models/ICON/ubuntu-mpi.def b/models/ICON/ubuntu-mpi.def new file mode 100644 index 0000000..eb2db44 --- /dev/null +++ b/models/ICON/ubuntu-mpi.def @@ -0,0 +1,22 @@ +BootStrap: docker +From: ubuntu:22.04 + +%setup + cp /home/maximilian/Downloads/openmpi-4.1.4.tar.bz2 \ + ${SINGULARITY_ROOTFS}/usr/local/src/openmpi-4.1.4.tar.bz2 + +%post + apt update -y + apt install -y build-essential + apt install -y gcc gfortran + apt install -y wget tar make bzip2 gzip perl rsync zip + apt install -y libibverbs-dev + + cd /usr/local/src + tar -xjf openmpi-4.1.4.tar.bz2 + cd openmpi-4.1.4 + + ./configure --prefix=/usr/local --with-hwloc --with-verbs + make -j 16 + make install + ldconfig -- GitLab