Skip to content

Commit

Permalink
llnl-sierra system config: pkg_spec needs to be a compiler name spack…
Browse files Browse the repository at this point in the history
… recognizes (#555)

* pkg_spec needs to be a compiler name spack recognizes

* fix similar problem for xl-gcc
  • Loading branch information
scheibelp authored Jan 22, 2025
1 parent 40685e0 commit 32d34d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion systems/llnl-sierra/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,17 @@ def sw_description(self):
will fail if these variables are not defined though, so for now
they are still generated (but with more-generic values).
"""
compiler_id = self.spec.variants["compiler"][0]
if compiler_id == "clang-ibm":
compiler_id = "clang"
elif compiler_id == "xl-gcc":
compiler_id = "xl"

return f"""\
software:
packages:
default-compiler:
pkg_spec: "{self.spec.variants["compiler"][0]}"
pkg_spec: "{compiler_id}"
default-mpi:
pkg_spec: spectrum-mpi
compiler-xl:
Expand Down

0 comments on commit 32d34d1

Please sign in to comment.