Skip to content
Snippets Groups Projects
Commit b249951e authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adding more environment specific configs

parent 7018f02d
No related branches found
No related tags found
No related merge requests found
Pipeline #197594 canceled
...@@ -26,11 +26,24 @@ then ...@@ -26,11 +26,24 @@ then
spack/bin/spack env create ${environment} spack/bin/spack env create ${environment}
fi fi
for file in mirrors.yaml packages.yaml concretizer.yaml config.yaml spack.yaml packages_stack.yaml for file in mirrors packages concretizer config spack
do do
if [ -e "${STACK_CONFIG_PATH}/${file}" ]; then if [ -e "${STACK_CONFIG_PATH}/${file}.yaml" ]; then
echo "Copying ${STACK_CONFIG_PATH}/${file} to ${SPACK_SYSTEM_CONFIG_PATH}" echo "Copying ${STACK_CONFIG_PATH}/${file}.yaml to ${SPACK_SYSTEM_CONFIG_PATH}"
cp "${STACK_CONFIG_PATH}/${file}" ${SPACK_SYSTEM_CONFIG_PATH} cp "${STACK_CONFIG_PATH}/${file}.yaml" \
${SPACK_SYSTEM_CONFIG_PATH}
fi
if [ -e "${STACK_CONFIG_PATH}/${file}_stack.yaml" ]; then
echo "Copying ${STACK_CONFIG_PATH}/${file}_stack.yaml to ${SPACK_SYSTEM_CONFIG_PATH}"
cp "${STACK_CONFIG_PATH}/${file}_stack.yaml" \
${SPACK_SYSTEM_CONFIG_PATH}
fi
if [ -e "${STACK_CONFIG_PATH}/${file}_${environment}.yaml" ]; then
echo "Copying ${STACK_CONFIG_PATH}/${file}_${environment}.yaml to ${SPACK_SYSTEM_CONFIG_PATH}/${file}_env.yaml"
cp "${STACK_CONFIG_PATH}/${file}_${environment}.yaml" \
${SPACK_SYSTEM_CONFIG_PATH}/${file}_env.yaml
fi fi
done done
...@@ -109,8 +122,6 @@ spack/bin/spack buildcache keys \ ...@@ -109,8 +122,6 @@ spack/bin/spack buildcache keys \
#spack/bin/spack buildcache update-index /buildcache #spack/bin/spack buildcache update-index /buildcache
cp ${STACK_CONFIG_PATH}/packages_${environment}.yaml ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
echo "packages:" > ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml echo "packages:" > ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
export system_compiler=$(jq -Mrc ' export system_compiler=$(jq -Mrc '
.stack .stack
......
definitions:
- cuda_system_codes:
- cuda
- cudnn
- cuda_serial_codes:
- nccl
...@@ -4,6 +4,7 @@ spack: ...@@ -4,6 +4,7 @@ spack:
- packages_stack.yaml - packages_stack.yaml
- packages_env.yaml - packages_env.yaml
- modules_stack.yaml - modules_stack.yaml
- definitions_env.yaml
definitions: definitions:
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
...@@ -89,6 +90,11 @@ spack: ...@@ -89,6 +90,11 @@ spack:
- superlu - superlu
- voropp - voropp
# -------------------------------------------------------------------------
# Empty to specialize in environments
# -------------------------------------------------------------------------
- cuda_system_codes: []
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# Parallel codes # Parallel codes
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment