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
3aa373b9
Commit
3aa373b9
authored
1 year ago
by
Fabian.Jakub
Browse files
Options
Downloads
Patches
Plain Diff
use SPACK_BUILD_ICON when loading icon-nwp module
parent
1b375e2b
No related branches found
No related tags found
No related merge requests found
Pipeline
#18760
passed
1 year ago
Stage: everything
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conf/common/build.yml
+4
-0
4 additions, 0 deletions
conf/common/build.yml
templates/common/build_icon.sh
+1
-1
1 addition, 1 deletion
templates/common/build_icon.sh
with
5 additions
and
1 deletion
conf/common/build.yml
+
4
−
0
View file @
3aa373b9
...
...
@@ -19,6 +19,10 @@ icon:
# build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER% ^openmpi/amct7nx"
# In LMU we used the following command to build the appropriate a version of openmpi works with slurm:
# build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER% ^openmpi+pmi+legacylaunchers schedulers=slurm fabrics=ucx ucx+dc+dm+ib_hw_tm+mlx5_dv+rc+rdmacm+thread_multiple+ud+verbs"
# On DKRZ levante:
# spack.compiler: "gcc@11.2.0/bcn7mbu"
# spack.upstreams: "/sw/spack-levante/"
# build_cmd: "icon-nwp@%ICON.VERSION%%gcc@11.2.0 source=dkrz_https ^openmpi@4.1.2%gcc@11.2.0 ^hdf5%gcc@11.2.0+fortran+hl"
version
:
master
# The latest release at the moment of creating this file was 2.6.5-nwp0
python_environment
:
...
...
This diff is collapsed.
Click to expand it.
templates/common/build_icon.sh
+
1
−
1
View file @
3aa373b9
...
...
@@ -36,7 +36,7 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then
spack
install
--reuse
$SPACK_BUILD_ICON
#TODO: had some problems with spack load when more than one version is available, adding --first to overcome that
# although in principle we should not install the model if its already installed.
spack load
--first
"icon-nwp@
${
ICON_VERSION
}
%
${
COMPILER
}
"
spack load
--first
$SPACK_BUILD_ICON
else
echo
"
\%
icon.build_cmd
\%
is not defined. If you want to compile icon with spack, please provide a spack compile instruction string in your build.yml"
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