Skip to content
Snippets Groups Projects
Commit d62766a9 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Merge pull request #756 from epfl-scitas/fixes/mpi_small_fixes

fix : mpich and mvapich2 will use spack compilers during installation
parents 3c8e055e c113d390
No related branches found
No related tags found
No related merge requests found
...@@ -47,12 +47,12 @@ class Mpich(Package): ...@@ -47,12 +47,12 @@ class Mpich(Package):
provides('mpi@:3.0', when='@3:') provides('mpi@:3.0', when='@3:')
provides('mpi@:1.3', when='@1:') provides('mpi@:1.3', when='@1:')
def setup_dependent_environment(self, env, dependent_spec): def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
env.set('MPICH_CC', spack_cc) spack_env.set('MPICH_CC', spack_cc)
env.set('MPICH_CXX', spack_cxx) spack_env.set('MPICH_CXX', spack_cxx)
env.set('MPICH_F77', spack_f77) spack_env.set('MPICH_F77', spack_f77)
env.set('MPICH_F90', spack_f90) spack_env.set('MPICH_F90', spack_fc)
env.set('MPICH_FC', spack_fc) spack_env.set('MPICH_FC', spack_fc)
def setup_dependent_package(self, module, dep_spec): def setup_dependent_package(self, module, dep_spec):
"""For dependencies, make mpicc's use spack wrapper.""" """For dependencies, make mpicc's use spack wrapper."""
......
...@@ -140,6 +140,13 @@ def set_network_type(self, spec, configure_args): ...@@ -140,6 +140,13 @@ def set_network_type(self, spec, configure_args):
configure_args.extend(network_options) configure_args.extend(network_options)
def setup_dependent_environment(self, spack_env, run_env, extension_spec):
spack_env.set('MPICH_CC', spack_cc)
spack_env.set('MPICH_CXX', spack_cxx)
spack_env.set('MPICH_F77', spack_f77)
spack_env.set('MPICH_F90', spack_fc)
spack_env.set('MPICH_FC', spack_fc)
def install(self, spec, prefix): def install(self, spec, prefix):
# we'll set different configure flags depending on our environment # we'll set different configure flags depending on our environment
configure_args = [ configure_args = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment