Add detection for hpcx-mpi in esmf (#30280)

This commit is contained in:
asesidaa 2022-05-03 23:45:04 +08:00 committed by GitHub
parent 653ed78645
commit a10f5656ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,8 @@ def edit(self, spec, prefix):
# The mpich 3 series split apart the Fortran and C bindings,
# so we link the Fortran libraries when building C programs:
os.environ['ESMF_CXXLINKLIBS'] = '-lmpifort'
elif '^openmpi' in spec:
elif '^openmpi' in spec or \
'^hpcx-mpi' in spec:
os.environ['ESMF_COMM'] = 'openmpi'
elif '^intel-parallel-studio+mpi' in spec or \
'^intel-mpi' in spec or \