diff options
author | TZ <tz-rrze@users.noreply.github.com> | 2020-05-16 17:40:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 10:40:40 -0500 |
commit | 2ebadbc267ffb4e2c175bdd7ceea9eb20e92254f (patch) | |
tree | 7251097e528254a1b86e4fb467bfcc9c780f9d72 /lib | |
parent | 983f05ac4198a2e9dfadcedcf9df572ead09a006 (diff) | |
download | spack-2ebadbc267ffb4e2c175bdd7ceea9eb20e92254f.tar.gz spack-2ebadbc267ffb4e2c175bdd7ceea9eb20e92254f.tar.bz2 spack-2ebadbc267ffb4e2c175bdd7ceea9eb20e92254f.tar.xz spack-2ebadbc267ffb4e2c175bdd7ceea9eb20e92254f.zip |
intel-mpi: add libfabrics directory to SPACK_COMPILER_EXTRA_RPATHS (#15214)
workaround for not finding an appropriate libfabrics.so with Intel
MPI 2019+. Fixes #11140 and #12493
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/intel.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/intel.py b/lib/spack/spack/build_systems/intel.py index 4017f2e526..a74d5e9613 100644 --- a/lib/spack/spack/build_systems/intel.py +++ b/lib/spack/spack/build_systems/intel.py @@ -1073,6 +1073,15 @@ class IntelPackage(PackageBase): # which performs dizzyingly similar but necessarily different # actions, and (b) function code leaves a bit more breathing # room within the suffocating corset of flake8 line length. + + # Intel MPI since 2019 depends on libfabric which is not in the + # lib directory but in a directory of its own which should be + # included in the rpath + if self.version >= ver('2019'): + d = ancestor(self.component_lib_dir('mpi')) + libfabrics_path = os.path.join(d, 'libfabric', 'lib') + env.append_path('SPACK_COMPILER_EXTRA_RPATHS', + libfabrics_path) else: raise InstallError('compilers_of_client arg required for MPI') |