diff options
author | Matthew Thompson <matthew.thompson@nasa.gov> | 2024-04-11 23:50:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 21:50:59 -0600 |
commit | 294742ab7bbac6c7357fcdf851c1031f51d3aaa5 (patch) | |
tree | d99005897cf444521b0a1b0a58f684589411b84f /var | |
parent | 6391559fb68d3cc8f9a5e01e6f68f8224ffb8d92 (diff) | |
download | spack-294742ab7bbac6c7357fcdf851c1031f51d3aaa5.tar.gz spack-294742ab7bbac6c7357fcdf851c1031f51d3aaa5.tar.bz2 spack-294742ab7bbac6c7357fcdf851c1031f51d3aaa5.tar.xz spack-294742ab7bbac6c7357fcdf851c1031f51d3aaa5.zip |
openmpi: add MPIFC environment variable (#36669)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/openmpi/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index abbf212857..5f2d194daa 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -842,6 +842,12 @@ class Openmpi(AutotoolsPackage, CudaPackage): env.set("MPICXX", join_path(self.prefix.bin, "mpic++")) env.set("MPIF77", join_path(self.prefix.bin, "mpif77")) env.set("MPIF90", join_path(self.prefix.bin, "mpif90")) + # Open MPI also has had mpifort since v1.7, so we can set MPIFC to that + # Note: that mpif77 and mpif90 are deprecated since v1.7, but careful + # testing would be needed to change the MPIF77 and MPIF90 above. For now + # we just *add* functionality + if self.spec.satisfies("@1.7:"): + env.set("MPIFC", join_path(self.prefix.bin, "mpifort")) def setup_dependent_build_environment(self, env, dependent_spec): # Use the spack compiler wrappers under MPI |