Skip to content
Snippets Groups Projects
Commit 0b711eca authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

feat: reuse already installed packages during concretization

parent 7e878a8c
Branches
Tags
1 merge request!962feat: reuse already installed packages during concretization
...@@ -48,7 +48,7 @@ echo -e "\n view: false" >> ${SPACK_ENV}/spack.yaml ...@@ -48,7 +48,7 @@ echo -e "\n view: false" >> ${SPACK_ENV}/spack.yaml
spack env activate --dir ${SPACK_ENV} spack env activate --dir ${SPACK_ENV}
spack external find --not-buildable --scope env:${SPACK_ENV} --path /usr/local/cuda/bin cuda spack external find --not-buildable --scope env:${SPACK_ENV} --path /usr/local/cuda/bin cuda
spack external find --not-buildable --scope env:${SPACK_ENV} llvm spack external find --not-buildable --scope env:${SPACK_ENV} llvm
spack concretize --fresh --force spack concretize --force
EOF EOF
...@@ -166,7 +166,7 @@ if [ "${JUGGLER_VERSION}" != "df87bf1f8643afa8e80bece9d36d6dc26dfe8132" ] ; then ...@@ -166,7 +166,7 @@ if [ "${JUGGLER_VERSION}" != "df87bf1f8643afa8e80bece9d36d6dc26dfe8132" ] ; then
sed -i "/# JUGGLER_VERSION$/ s/@[^' ]*/@git.${JUGGLER_VERSION}=main/" /opt/spack-environment/packages.yaml sed -i "/# JUGGLER_VERSION$/ s/@[^' ]*/@git.${JUGGLER_VERSION}=main/" /opt/spack-environment/packages.yaml
spack deconcretize -y --all juggler spack deconcretize -y --all juggler
fi fi
spack concretize --fresh --force spack concretize --force
EOF EOF
......
...@@ -6,5 +6,8 @@ ...@@ -6,5 +6,8 @@
# when_possible and consider duplicate dependencies an error. # when_possible and consider duplicate dependencies an error.
# #
concretizer: concretizer:
reuse: false reuse:
roots: true
from:
- type: local
unify: when_possible unify: when_possible
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment