Skip to content

Commit 98a87f3

Browse files
authored
[SYCL] Fix UR standalone build (#18829)
Fixes issue reported [here](#18599 (comment)). Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 58d681a commit 98a87f3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sycl/cmake/modules/FetchEmhash.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Finds or fetches emhash.
2+
if(DEFINED SYCL_EMHASH_DIR OR DEFINED EMHASH_SYS_LOC)
3+
return()
4+
endif()
25
find_file(EMHASH_SYS_LOC "hash_table8.hpp" PATH_SUFFIXES "emhash")
36
if(NOT EMHASH_SYS_LOC)
47
set(EMHASH_REPO https://github.com/ktprime/emhash)

xptifw/src/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Fetch third party headers
22
include(FetchContent)
33

4-
# The sycl target should download or find emhash.
4+
# The sycl target should download or find emhash but may not
5+
# for standalone builds.
56
if (NOT SYCL_EMHASH_DIR)
6-
message(FATAL_ERROR "emhash headers not found")
7+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../sycl/cmake/modules")
8+
include(FetchEmhash)
79
endif()
810

911
set(PARALLEL_HASHMAP_REPO https://github.com/greg7mdp/parallel-hashmap.git)

0 commit comments

Comments
 (0)