Skip to content

Commit 30c37cd

Browse files
igchorpbalcerdm-vodopyanov
authored andcommitted
[UR] disable hwloc support for UMF (intel#14812)
Hwloc package is not avalable on certain distros (e.g. RHEL). To avoid forcing users to install hwloc from sources, disable hwloc in UMF. Based on: oneapi-src/unified-memory-framework#642 --------- Co-authored-by: Piotr Balcer <[email protected]> Co-authored-by: Dmitry Vodopyanov <[email protected]>
1 parent 1a915ac commit 30c37cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/cmake/modules/FetchUnifiedRuntime.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ option(SYCL_PI_UR_USE_FETCH_CONTENT
2323
set(SYCL_PI_UR_SOURCE_DIR
2424
"" CACHE PATH "Path to root of Unified Runtime repository")
2525

26+
option(SYCL_UMF_DISABLE_HWLOC
27+
"Disable hwloc support in UMF" ON)
28+
2629
# Here we override the defaults to disable building tests from unified-runtime
2730
set(UR_BUILD_EXAMPLES OFF CACHE BOOL "Build example applications." FORCE)
2831
set(UR_BUILD_TESTS OFF CACHE BOOL "Build unit tests." FORCE)
@@ -127,6 +130,8 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
127130
if(WIN32)
128131
set(UMF_BUILD_SHARED_LIBRARY OFF CACHE INTERNAL "Build UMF shared library")
129132
set(UMF_LINK_HWLOC_STATICALLY ON CACHE INTERNAL "static HWLOC")
133+
else()
134+
set(UMF_DISABLE_HWLOC ${SYCL_UMF_DISABLE_HWLOC} CACHE INTERNAL "Disable hwloc for UMF")
130135
endif()
131136

132137
fetch_adapter_source(level_zero

0 commit comments

Comments
 (0)