Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2w
autoicon
Commits
96bdccc7
Commit
96bdccc7
authored
2 years ago
by
Oriol Tintó
Browse files
Options
Downloads
Patches
Plain Diff
Trying to get icon build pointing to a slurm capable version of openmpi.
parent
6cffa46e
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conf/proj.yaml
+1
-0
1 addition, 0 deletions
conf/proj.yaml
templates/build_icon.sh
+4
-5
4 additions, 5 deletions
templates/build_icon.sh
with
5 additions
and
5 deletions
conf/proj.yaml
+
1
−
0
View file @
96bdccc7
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
...
...
This diff is collapsed.
Click to expand it.
templates/build_icon.sh
+
4
−
5
View file @
96bdccc7
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment