summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hwloc/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py
index a3a8597236..3efa4cd5a2 100644
--- a/var/spack/repos/builtin/packages/hwloc/package.py
+++ b/var/spack/repos/builtin/packages/hwloc/package.py
@@ -135,6 +135,14 @@ class Hwloc(AutotoolsPackage):
if '+opencl' not in self.spec:
args.append('--disable-opencl')
+ # If ROCm libraries are found in system /opt/rocm
+ # during config stage, hwloc builds itself with
+ # librocm_smi support.
+ # This can fail the config tests while building
+ # OpenMPI due to lack of rpath to librocm_smi
+ if '+rocm' not in self.spec:
+ args.append('--disable-rsmi')
+
if '+netloc' in self.spec:
args.append('--enable-netloc')