Skip to content

Commit

Permalink
[UR] Ensure UMF options are set
Browse files Browse the repository at this point in the history
  • Loading branch information
kbenzie committed Feb 17, 2025
1 parent e1c98cd commit 81e50ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sycl/cmake/modules/FetchUnifiedRuntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ if(IS_DIRECTORY "${UR_INTREE_SOURCE_DIR}")
set(UNIFIED_RUNTIME_SOURCE_DIR
"${UR_INTREE_SOURCE_DIR}" CACHE PATH
"Path to Unified Runtime Headers" FORCE)
set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")
# Due to the use of dependentloadflag and no installer for UMF and hwloc we need
# to link statically on windows
if(WIN32)
set(UMF_BUILD_SHARED_LIBRARY OFF CACHE INTERNAL "Build UMF shared library")
set(UMF_LINK_HWLOC_STATICALLY ON CACHE INTERNAL "static HWLOC")
else()
set(UMF_DISABLE_HWLOC ${SYCL_UMF_DISABLE_HWLOC} CACHE INTERNAL "Disable hwloc for UMF")
endif()
add_subdirectory(${UNIFIED_RUNTIME_SOURCE_DIR} ${UR_INTREE_BINARY_DIR})
elseif(SYCL_UR_USE_FETCH_CONTENT)
include(FetchContent)
Expand Down

0 comments on commit 81e50ce

Please sign in to comment.