Skip to content
Snippets Groups Projects

Adding nvhpc to kuma

Merged Nicolas Richart requested to merge adding-nvhpc into main
Compare and Show latest version
3 files
+ 26
33
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 52
27
@@ -4,36 +4,61 @@ set -o errexit
set -o pipefail
set -o nounset
source ci/stack_env.sh
echo "Checking /deconcretize/${stack}_${environment}_${SQUASHFS_ID}"
if [ -e /deconcretize/${stack}_${environment}_${SQUASHFS_ID} ];
if [ $# -ge 1 ]
then
while read -r spec
do
echo "Deconcretizing ${spec}"
${STACK_LOCATION}/spack/bin/spack \
--color=always \
-e ${environment} \
deconcretize \
--all --yes-to-all \
${spec}
done <<< $(cat /deconcretize/${stack}_${environment}_${SQUASHFS_ID})
force="$*"
echo "Extra concretize arguments ${force}"
else
force=""
fi
${STACK_LOCATION}/spack/bin/spack \
-e ${environment} \
config blame | tee config-${environment}-${stack}.log
source ${CI_PROJECT_DIR}/ci/stack_env.sh
_compilers=$(jq -Mrc '.stack
| .system_arch as $arch
| .compilers
| to_entries
| .[]
| {name: .key, arch: $arch} + .value
| select((.constraint == null) or (.constraint? | index(env.environment)))
' ${STACK_CONFIG})
compilers_names="gcc $(echo ${_compilers} | jq -Mrs '. | map("\(.name)") | .[]' | egrep -v '^gcc$')"
for name in ${compilers_names}
do
source ci/stack_env.sh ${name}
echo "Checking /deconcretize/${stack}_${full_environment}_${SQUASHFS_ID}"
if [ -e /deconcretize/${stack}_${full_environment}_${SQUASHFS_ID} ];
then
while read -r spec
do
echo "Deconcretizing ${spec}"
${STACK_LOCATION}/spack/bin/spack \
--color=always \
-e ${full_environment} \
deconcretize \
--all --yes-to-all \
${spec}
done <<< $(cat /deconcretize/${stack}_${full_environment}_${SQUASHFS_ID})
fi
${STACK_LOCATION}/spack/bin/spack \
--color always \
-e ${full_environment} \
config blame | tee config-${full_environment}-${stack}.log
${STACK_LOCATION}/spack/bin/spack \
--color always \
-e ${environment} \
concretize | tee concretize-${environment}-${stack}.log
${STACK_LOCATION}/spack/bin/spack \
--color always \
-e ${full_environment} \
concretize ${force} | tee concretize-${full_environment}-${stack}.log
${STACK_LOCATION}/spack/bin/spack \
--color always \
-e ${environment} \
mirror create \
-D -d ${MOUNT_POINT}/spack-mirror -a || /usr//bin/true
${STACK_LOCATION}/spack/bin/spack \
--color always \
-e ${full_environment} \
mirror create \
-D -d ${MOUNT_POINT}/spack-mirror -a || /usr//bin/true
cp ${SPACK_SYSTEM_CONFIG_PATH}/spack.lock spack-${environment}-${stack}.lock
cp ${SPACK_SYSTEM_CONFIG_PATH}/spack.lock spack-${full_environment}-${stack}.lock
done
Loading