intel-oneapi-mpi: fix mpicc and related scripts (#23955)

Replace I_MPI_SUBSTITUTE_INSTALLDIR with actual installation prefix
This commit is contained in:
Tom Vander Aa 2021-06-03 12:37:35 +02:00 committed by GitHub
parent 473e9aa08e
commit 1efeb933ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,3 +77,14 @@ def install(self, spec, prefix):
for lib_version in ['debug', 'release', 'release_mt', 'debug_mt']: for lib_version in ['debug', 'release', 'release_mt', 'debug_mt']:
file = join_path(self.component_path, 'lib', lib_version, 'libmpi.so') file = join_path(self.component_path, 'lib', lib_version, 'libmpi.so')
subprocess.call(['patchelf', '--set-rpath', libfabric_rpath, file]) subprocess.call(['patchelf', '--set-rpath', libfabric_rpath, file])
# fix I_MPI_SUBSTITUTE_INSTALLDIR and
# __EXEC_PREFIX_TO_BE_FILLED_AT_INSTALL_TIME__
scripts = ["mpif77", "mpif90", "mpigcc", "mpigxx", "mpiicc", "mpiicpc",
"mpiifort"]
for script in scripts:
file = join_path(self.component_path, 'bin', script)
filter_file('I_MPI_SUBSTITUTE_INSTALLDIR',
self.component_path, file, backup=False)
filter_file('__EXEC_PREFIX_TO_BE_FILLED_AT_INSTALL_TIME__',
self.component_path, file, backup=False)