Fix filter_compiler_wrappers with mpi (#47448)
This commit is contained in:
parent
ba953352a1
commit
dee379d3fc
@ -427,8 +427,14 @@ def install(self, spec, prefix):
|
|||||||
# Link arch-specific directories into prefix since there is
|
# Link arch-specific directories into prefix since there is
|
||||||
# only one arch per prefix the way spack installs.
|
# only one arch per prefix the way spack installs.
|
||||||
self.link_tau_arch_dirs()
|
self.link_tau_arch_dirs()
|
||||||
# TAU may capture Spack's internal compiler wrapper. Replace
|
# TAU may capture Spack's internal compiler wrapper. Fixed
|
||||||
# it with the correct compiler.
|
# by filter_compiler_wrappers. Switch back the environment
|
||||||
|
# variables the filter uses.
|
||||||
|
if "+mpi" in spec:
|
||||||
|
env["CC"] = spack_cc
|
||||||
|
env["CXX"] = spack_cxx
|
||||||
|
env["FC"] = spack_fc
|
||||||
|
env["F77"] = spack_f77
|
||||||
|
|
||||||
def link_tau_arch_dirs(self):
|
def link_tau_arch_dirs(self):
|
||||||
for subdir in os.listdir(self.prefix):
|
for subdir in os.listdir(self.prefix):
|
||||||
|
Loading…
Reference in New Issue
Block a user