Disable rsmi for hwloc when rocm is not enabled (#27547)
Co-authored-by: mahendrapaipuri <mahendra.paipuri@inria.fr>
This commit is contained in:
parent
0024e5cc9b
commit
1a95b979d8
@ -135,6 +135,14 @@ def configure_args(self):
|
|||||||
if '+opencl' not in self.spec:
|
if '+opencl' not in self.spec:
|
||||||
args.append('--disable-opencl')
|
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:
|
if '+netloc' in self.spec:
|
||||||
args.append('--enable-netloc')
|
args.append('--enable-netloc')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user