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

Adding target to compilers

parent a121cd7a
No related branches found
No related tags found
No related merge requests found
Pipeline #197010 failed
......@@ -73,6 +73,12 @@ for c in "core_compilers" "compilers"; do
fi
done
export target=$(jq -Mrc '
.stack.targets
| to_entries.[]
| select(.key == env.environment)
|.value' ${STACK_CONFIG})
compilers_specs=$(jq -Mr '
.stack
| .system_arch as $arch
......@@ -89,14 +95,15 @@ system_compiler=$(jq -Mrc '
' ${STACK_CONFIG})
core_compilers=$(jq -Mrc '.stack
| .system_arch as $arch
| .system_compiler + .core_compilers
| map("\(.compiler)@\(.version)")
| map("\(.compiler)@\(.version) \($arch)")
' ${STACK_CONFIG})
compilers=$(jq -Mrc '.stack
| .compilers
| map(select(.constraint == null))
| map("\(.compiler)@\(.version)")
| map("\(.compiler)@\(.version) target=\(env.target)")
' ${STACK_CONFIG})
echo "definitions:" > ${SPACK_SYSTEM_CONFIG_PATH}/compiler_definitions.yaml
......@@ -123,7 +130,7 @@ jq -Mrc '
| .system_arch as $arch
| .compilers
| to_entries
| map(" - compiler_\(.key): [\(.value.compiler)@\(.value.version)]")
| map(" - compiler_\(.key): [\(.value.compiler)@\(.value.version) target=\(env.target)]")
| .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/compiler_definitions.yaml
......
......@@ -22,6 +22,13 @@
"version": "11.4.1"
}
},
"targets": {
"helvetios": "skylake_avx512",
"izar": "cascadelake",
"jed": "icelake",
"kuma_l40s": "zen4",
"kuma_h100": "zen4"
},
"compilers": {
"gcc_stable": {
"compiler": "gcc",
......
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