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
3c2c2749
Commit
3c2c2749
authored
2 years ago
by
Fabian.Jakub
Browse files
Options
Downloads
Patches
Plain Diff
add --reuse flag to spack install calls
parent
2026f625
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Switching to the advanced configuration method and fixing spack build.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platforms/common/spack_utils.sh
+1
-1
1 addition, 1 deletion
platforms/common/spack_utils.sh
templates/common/build_icon.sh
+2
-2
2 additions, 2 deletions
templates/common/build_icon.sh
with
3 additions
and
3 deletions
platforms/common/spack_utils.sh
+
1
−
1
View file @
3c2c2749
...
...
@@ -16,7 +16,7 @@ function _install_spack() {
echo
"Found Compiler
$(
spack compiler info
${
SPACK_COMPILER
}
)
"
else
echo
"could not find compiler, will now try to install it... this may take a while"
spack
install
${
SPACK_COMPILER
}
spack
install
--reuse
${
SPACK_COMPILER
}
spack compiler add
$(
spack location
--install-dir
$SPACK_COMPILER
)
fi
}
...
...
This diff is collapsed.
Click to expand it.
templates/common/build_icon.sh
+
2
−
2
View file @
3c2c2749
...
...
@@ -17,7 +17,7 @@ cd ${WORKDIR} || exit
load_spack
"%spack.init%"
"%spack.root%"
"%spack.url%"
"%spack.branch%"
"%spack.externals%"
"%spack.compiler%"
"%spack.disable_local_config%"
"%spack.user_cache_path%"
"%spack.user_config_path%"
if
[
!
$(
rpm
-qa
|
grep
bzip2
)
]
;
then
spack
install
bzip2
spack
install
--reuse
bzip2
spack load
--first
bzip2
fi
...
...
@@ -32,7 +32,7 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then
spack repo add
${
WORKDIR
}
/proj/spack_repo
fi
spack spec
$SPACK_BUILD_ICON
spack
install
$SPACK_BUILD_ICON
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
}
"
...
...
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