summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTom Vander Aa <Tom.VanderAa@gmail.com>2021-06-03 12:37:35 +0200
committerGitHub <noreply@github.com>2021-06-03 04:37:35 -0600
commit1efeb933ec2664b9e783de8e67759fd86f07d3d1 (patch)
treee29422841e0d634bd5cf805a86e268ebd9bfe287 /var
parent473e9aa08e687fc45b55aea17b068661985743b0 (diff)
downloadspack-1efeb933ec2664b9e783de8e67759fd86f07d3d1.tar.gz
spack-1efeb933ec2664b9e783de8e67759fd86f07d3d1.tar.bz2
spack-1efeb933ec2664b9e783de8e67759fd86f07d3d1.tar.xz
spack-1efeb933ec2664b9e783de8e67759fd86f07d3d1.zip
intel-oneapi-mpi: fix mpicc and related scripts (#23955)
Replace I_MPI_SUBSTITUTE_INSTALLDIR with actual installation prefix
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py b/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py
index 68166d1525..96f8ee0d15 100644
--- a/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py
+++ b/var/spack/repos/builtin/packages/intel-oneapi-mpi/package.py
@@ -77,3 +77,14 @@ class IntelOneapiMpi(IntelOneApiLibraryPackage):
for lib_version in ['debug', 'release', 'release_mt', 'debug_mt']:
file = join_path(self.component_path, 'lib', lib_version, 'libmpi.so')
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)