Skip to content

'spack stack create env' automatically filter unused compilers from site/compilers.yaml? #1570

@AlexanderRichert-NOAA

Description

@AlexanderRichert-NOAA

Spack does not provide a clean way to restrict the compilers used in a given environment. I keep running into situations where for example on Acorn, some Intel 2022 packages creep into my Intel 19 environment (this has been happening in the weekly builds, so the build cache is a mess of intermixed Intel versions). I was planning to add a utility (mainly for use in weekly builds) to modify site/compilers.yaml (or any compilers.yaml or spack.yaml) to filter compilers in an inclusive or exclusive way, for instance, "remove all intel versions except the specified one." It occurred to me that that might have some broader use, so if it would be a helpful default behavior in spack stack create env, I'm happy to add it. For instance, if a user does spack stack create env --compiler [email protected], then it could automatically modify site/compilers.yaml to remove all other Intel versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions