Closed bcumming closed 5 months ago
the gcc
first policy is also applied to cray-mpich
. Should it be made automatic? Any environment using nvhpc must most likely use cray-mpich%nvhpc
. Or it should be enforced that in mpi.spec
there is always either %gcc
or %nvhpc
.
the
gcc
first policy is also applied tocray-mpich
. Should it be made automatic? Any environment using nvhpc must most likely usecray-mpich%nvhpc
. Or it should be enforced that inmpi.spec
there is always either%gcc
or%nvhpc
.
The compiler for cray-mpich can be explicitly provided in the mpi:
field, like it is for the MCH recipe:
https://github.com/eth-cscs/alps-uenv/blob/main/recipes/wcp/icon/v1/gh200/environments.yaml#L9
Recipe authors are not able to set a "default" compiler when using more than one compiler toolchain to build packages in an environment. As a result, the spec list for such environments can be messy because the author has to explicitly set the compiler for many packages to override the compiler chosen by the concretizer.
For example, the following sample that explicitly sets
%gcc
from the MCH recipe:This PR makes the first compiler in the toolchain the default, and only overrides that choice for specs that explicitly specify the second compiler. For example, the following
compiler
settings would build with the gcc toolchain by default: