Ascent, Conduit & VTK-h: don't assume I have Fortran (#32285)
* VTK-h: don't assume I have Fortran Don't assume I have a working Fortran compiler in my toolchain :) * Conduit: Do not Assume Fortran * Ascent: Do not Assume Fortran * fix style
This commit is contained in:
parent
fff929d5ab
commit
39beafc99a
3 changed files with 8 additions and 5 deletions
|
@ -446,7 +446,7 @@ def hostconfig(self):
|
|||
if "+mpi" in spec:
|
||||
mpicc_path = spec["mpi"].mpicc
|
||||
mpicxx_path = spec["mpi"].mpicxx
|
||||
mpifc_path = spec["mpi"].mpifc
|
||||
mpifc_path = spec["mpi"].mpifc if "+fortran" in spec else None
|
||||
# if we are using compiler wrappers on cray systems
|
||||
# use those for mpi wrappers, b/c spec['mpi'].mpicxx
|
||||
# etc make return the spack compiler wrappers
|
||||
|
@ -458,6 +458,7 @@ def hostconfig(self):
|
|||
cfg.write(cmake_cache_entry("ENABLE_MPI", "ON"))
|
||||
cfg.write(cmake_cache_entry("MPI_C_COMPILER", mpicc_path))
|
||||
cfg.write(cmake_cache_entry("MPI_CXX_COMPILER", mpicxx_path))
|
||||
if "+fortran" in spec:
|
||||
cfg.write(cmake_cache_entry("MPI_Fortran_COMPILER", mpifc_path))
|
||||
mpiexe_bin = join_path(spec["mpi"].prefix.bin, "mpiexec")
|
||||
if os.path.isfile(mpiexe_bin):
|
||||
|
|
|
@ -452,7 +452,7 @@ def hostconfig(self):
|
|||
if "+mpi" in spec:
|
||||
mpicc_path = spec["mpi"].mpicc
|
||||
mpicxx_path = spec["mpi"].mpicxx
|
||||
mpifc_path = spec["mpi"].mpifc
|
||||
mpifc_path = spec["mpi"].mpifc if "+fortran" in spec else None
|
||||
# if we are using compiler wrappers on cray systems
|
||||
# use those for mpi wrappers, b/c spec['mpi'].mpicxx
|
||||
# etc make return the spack compiler wrappers
|
||||
|
|
|
@ -197,7 +197,8 @@ def hostconfig(self):
|
|||
if "+mpi" in spec:
|
||||
mpicc_path = spec["mpi"].mpicc
|
||||
mpicxx_path = spec["mpi"].mpicxx
|
||||
mpifc_path = spec["mpi"].mpifc
|
||||
has_mpifc = hasattr(spec["mpi"], "mpifc")
|
||||
mpifc_path = spec["mpi"].mpifc if has_mpifc else None
|
||||
# if we are using compiler wrappers on cray systems
|
||||
# use those for mpi wrappers, b/c spec['mpi'].mpicxx
|
||||
# etc make return the spack compiler wrappers
|
||||
|
@ -209,6 +210,7 @@ def hostconfig(self):
|
|||
cfg.write(cmake_cache_entry("ENABLE_MPI", "ON"))
|
||||
cfg.write(cmake_cache_entry("MPI_C_COMPILER", mpicc_path))
|
||||
cfg.write(cmake_cache_entry("MPI_CXX_COMPILER", mpicxx_path))
|
||||
if has_mpifc:
|
||||
cfg.write(cmake_cache_entry("MPI_Fortran_COMPILER", mpifc_path))
|
||||
mpiexe_bin = join_path(spec["mpi"].prefix.bin, "mpiexec")
|
||||
if os.path.isfile(mpiexe_bin):
|
||||
|
|
Loading…
Reference in a new issue