Disable rsmi for hwloc when rocm is not enabled (#27547)

Co-authored-by: mahendrapaipuri <mahendra.paipuri@inria.fr>
This commit is contained in:
Mahendra Paipuri 2021-11-22 10:47:56 +01:00 committed by GitHub
parent 0024e5cc9b
commit 1a95b979d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,14 @@ def configure_args(self):
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')