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

Corrected definitions of compilers

parent 2bac1f00
No related branches found
No related tags found
No related merge requests found
Pipeline #179975 failed
...@@ -148,8 +148,20 @@ spack:install_compilers: ...@@ -148,8 +148,20 @@ spack:install_compilers:
--key EDC904DCE3D2E84E --key EDC904DCE3D2E84E
/buildcache ${hashes} /buildcache ${hashes}
- | - >
echo 'definitions: [ compilers: ' $(jq -Mrc '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")' config.json) ']' > compiler_definitions.yaml core_compiler=$(jq -Mrc '.stack | .core_compiler' config.json)
compilers=$(jq -Mrc '.stack | .compilers | to_entries | map("\(.key)@\(.value.version)")' config.json)
compilers_specs=$(jq -Mrc '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")' config.json)
cat > compiler_definitions.yaml << EOF
definitions:
- core_compiler: [ ${core_compiler} ]
- compilers: ${compilers}
- compilers_specs: ${compilers_specs}
EOF
cat compiler_definitions.yaml cat compiler_definitions.yaml
- | - |
...@@ -178,7 +190,7 @@ spack:concretize: ...@@ -178,7 +190,7 @@ spack:concretize:
- .spack_cache - .spack_cache
- .parallel_job - .parallel_job
script: script:
- spack/bin/spack -e . config blame definitions - spack/bin/spack -e . config blame
- spack/bin/spack -e . concretize - spack/bin/spack -e . concretize
needs: needs:
- job: spack:install_compilers - job: spack:install_compilers
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"core_compiler": "gcc@11.4.1 arch=linux-rhel9-x86_64_v2", "core_compiler": "gcc@11.4.1 arch=linux-rhel9-x86_64_v2",
"compilers": { "compilers": {
"gcc": { "spec": "gcc", "version": "12.2.0" }, "gcc": { "spec": "gcc", "version": "12.2.0" },
"intel": { "spec": "intel-oneapi-compilers", "version": "2023.2.1" } "oneapi": { "spec": "intel-oneapi-compilers", "version": "2023.2.1" }
} }
} }
} }
...@@ -34,7 +34,9 @@ spack: ...@@ -34,7 +34,9 @@ spack:
- $mpis - $mpis
specs: specs:
- $compilers - matrix:
- [$compilers_specs]
- [$%core_compiler]
- matrix: - matrix:
- [$all_serial_codes] - [$all_serial_codes]
- [$%compilers] - [$%compilers]
......
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