Skip to content
Snippets Groups Projects
Commit 96bdccc7 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Trying to get icon build pointing to a slurm capable version of openmpi.

parent 6cffa46e
No related merge requests found
spack: spack:
url: git@gitlab.physik.uni-muenchen.de:LDAP_rbg/spack.git url: git@gitlab.physik.uni-muenchen.de:LDAP_rbg/spack.git
branch: lmu/ubuntu20.04-icon branch: lmu/ubuntu20.04-icon
compiler: gcc%11.3.0
icon: icon:
version: 2.6.4-nwp3 version: 2.6.4-nwp3
......
...@@ -4,6 +4,7 @@ WORKDIR=%HPCROOTDIR% ...@@ -4,6 +4,7 @@ WORKDIR=%HPCROOTDIR%
ICON_VERSION=%ICON_VERSION% ICON_VERSION=%ICON_VERSION%
SPACK_URL=%spack.url% SPACK_URL=%spack.url%
SPACK_BRANCH=%spack.branch% SPACK_BRANCH=%spack.branch%
SPACK_COMPILER=%spack.compiler%
# If the workdir directory does not exist create it # If the workdir directory does not exist create it
...@@ -24,14 +25,12 @@ fi ...@@ -24,14 +25,12 @@ fi
# Setup the environment # Setup the environment
source ${SPACK_ENV} source ${SPACK_ENV}
# If the model is not installed, install it.
if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then
spack install icon-nwp@${ICON_VERSION} ^mpi+slurm
fi
if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then
echo "Installing icon-nwp@${ICON_VERSION}." echo "Installing icon-nwp@${ICON_VERSION}."
spack install icon-nwp@${ICON_VERSION} # Compile openmpi with schedulers=slurm
spack install openmpi${SPACK_COMPILER}+legacylaunchers schedulers=slurm
spack install icon-nwp@${ICON_VERSION}%${SPACK_COMPILER} ^openmpi%${SPACK_COMPILER}
else else
echo "icon-nwp@${ICON_VERSION} already installed!" echo "icon-nwp@${ICON_VERSION} already installed!"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment