Skip to content

Commit eed4250

Browse files
committed
[UR] Ensure UMF options are set
1 parent 8f0d7e3 commit eed4250

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sycl/cmake/modules/FetchUnifiedRuntime.cmake

+9
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ if(IS_DIRECTORY "${UR_INTREE_SOURCE_DIR}")
7878
set(UNIFIED_RUNTIME_SOURCE_DIR
7979
"${UR_INTREE_SOURCE_DIR}" CACHE PATH
8080
"Path to Unified Runtime Headers" FORCE)
81+
set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")
82+
# Due to the use of dependentloadflag and no installer for UMF and hwloc we need
83+
# to link statically on windows
84+
if(WIN32)
85+
set(UMF_BUILD_SHARED_LIBRARY OFF CACHE INTERNAL "Build UMF shared library")
86+
set(UMF_LINK_HWLOC_STATICALLY ON CACHE INTERNAL "static HWLOC")
87+
else()
88+
set(UMF_DISABLE_HWLOC ${SYCL_UMF_DISABLE_HWLOC} CACHE INTERNAL "Disable hwloc for UMF")
89+
endif()
8190
add_subdirectory(${UNIFIED_RUNTIME_SOURCE_DIR} ${UR_INTREE_BINARY_DIR})
8291
elseif(SYCL_UR_USE_FETCH_CONTENT)
8392
include(FetchContent)

0 commit comments

Comments
 (0)