Skip to content

Commit 8ad2f6a

Browse files
committed
Disable rsmi in hwloc build
Disable not used hwloc feature "rsmi". Silence errors during hwloc linkage to umf, like: /usr/bin/ld: _deps/hwloc_targ-build/lib/libhwloc.a(topology-rsmi.o): in function `get_device_name': topology-rsmi.c:(.text+0x208): undefined reference to `rsmi_dev_name_get'
1 parent 66b161a commit 8ad2f6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ else()
176176
./configure --prefix=${hwloc_targ_BINARY_DIR}
177177
--enable-static=yes --enable-shared=no --disable-libxml2
178178
--disable-pci --disable-levelzero --disable-opencl
179-
--disable-cuda --disable-nvml --disable-libudev CFLAGS=-fPIC
180-
CXXFLAGS=-fPIC
179+
--disable-cuda --disable-nvml --disable-libudev --disable-rsmi
180+
CFLAGS=-fPIC CXXFLAGS=-fPIC
181181
WORKING_DIRECTORY ${hwloc_targ_SOURCE_DIR}
182182
OUTPUT ${hwloc_targ_SOURCE_DIR}/Makefile
183183
DEPENDS ${hwloc_targ_SOURCE_DIR}/configure)

0 commit comments

Comments
 (0)