[intel-oneapi-mpi] Add compiler wrappers to dependent build stage (#22468)

This adds MPICC=/path/to/intel-oneapi/mpicc etc to he dependents build stage enabling the use of the compiler wrappers.

Co-authored-by: Stephen Sachs <stesachs@amazon.com>
This commit is contained in:
Stephen Sachs 2021-03-26 23:19:26 +01:00 committed by GitHub
parent a7d36cab5b
commit 23b19b55b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,14 @@ def setup_dependent_build_environment(self, env, dependent_spec):
env.set('MPICH_F90', spack_fc) env.set('MPICH_F90', spack_fc)
env.set('MPICH_FC', spack_fc) env.set('MPICH_FC', spack_fc)
# Set compiler wrappers for dependent build stage
dir = self._join_prefix('bin')
env.set('MPICC', join_path(dir, 'mpicc'))
env.set('MPICXX', join_path(dir, 'mpicxx'))
env.set('MPIF77', join_path(dir, 'mpif77'))
env.set('MPIF90', join_path(dir, 'mpif90'))
env.set('MPIFC', join_path(dir, 'mpifc'))
@property @property
def libs(self): def libs(self):
libs = [] libs = []