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

Packages.yaml specific to each environment

parent 837b42b6
No related branches found
No related tags found
No related merge requests found
Pipeline #196841 canceled
......@@ -83,34 +83,4 @@ spack/bin/spack buildcache keys \
#spack/bin/spack buildcache update-index /buildcache
target=$(jq -Mrc --arg env "${environment}" '
.environments
| to_entries
| map(select(.key==env.environment))
| .[].value.target
' ${STACK_CONFIG})
require=$(jq -Mrc --arg environment "${environment}" '
.environments
| to_entries
| map(select(.key==env.environment))
| .[].value
| if has("require") then
.require
| map(" - spec: \(.spec)\n when: \(.when)")
| .[]
else
""
end' ${STACK_CONFIG})
cat <<EOF > ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
packages:
all:
target: [$target]
EOF
if [ "x$require" != "x" ]
then
echo " require:" >> ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
echo "${require}" >> ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
fi
cp ${STACK_CONFIG_PATH}/packages_${environment}.yaml ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
......@@ -54,17 +54,5 @@
}
}
},
"environments": {
"jed": {
"target": "icelake",
"require": [ {
"spec": "cuda_arch=90",
"when": "+cuda"
}]
},
"helvetios": {
"target": "skylake_avx512"
}
}
}
......@@ -10,6 +10,9 @@ packages:
- spec: ^openmpi
when: '%gcc ^mpi'
- spec: "+ipo"
when: '%gcc'
# System dependencies # ----------------------------------------------------------------------------
rdma-core:
buildable: false
......
packages:
all:
target: ["skylake_avx512"]
require:
- '~cuda'
packages:
all:
target: ["icelake"]
require:
- spec: ^openmpi +cuda
when: '%gcc ^mpi'
- spec: cuda_arch=90
when: '+cuda'
- '+cuda'
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