Skip to content

Commit 73c2230

Browse files
igchorlukaszstolarczuk
authored andcommitted
Disable opencl, cuda and nvml when configuring hwloc
Without explicitly disabling them and if a system where hwloc is being build has opencl/cuda/nvml installed those libraries will become hwloc dependencies which would force umf to link with them. The problem manifested on a system where opencl was installed and umf compilation failed due to missing clGetDevices symbol.
1 parent cc4b8a7 commit 73c2230

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ elseif(NOT UMF_DISABLE_HWLOC)
173173
COMMAND
174174
./configure --prefix=${hwloc_targ_BINARY_DIR} --enable-static=yes
175175
--enable-shared=no --disable-libxml2 --disable-levelzero
176-
CFLAGS=-fPIC CXXFLAGS=-fPIC
176+
--disable-opencl --disable-cuda --disable-nvml CFLAGS=-fPIC
177+
CXXFLAGS=-fPIC
177178
WORKING_DIRECTORY ${hwloc_targ_SOURCE_DIR}
178179
OUTPUT ${hwloc_targ_SOURCE_DIR}/Makefile
179180
DEPENDS ${hwloc_targ_SOURCE_DIR}/configure)

0 commit comments

Comments
 (0)