Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sycl/cmake/modules/FetchEmhash.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Finds or fetches emhash.
if(DEFINED SYCL_EMHASH_DIR OR DEFINED EMHASH_SYS_LOC)
return()
endif()
find_file(EMHASH_SYS_LOC "hash_table8.hpp" PATH_SUFFIXES "emhash")
if(NOT EMHASH_SYS_LOC)
set(EMHASH_REPO https://github.com/ktprime/emhash)
Expand Down
6 changes: 4 additions & 2 deletions xptifw/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Fetch third party headers
include(FetchContent)

# The sycl target should download or find emhash.
# The sycl target should download or find emhash but may not
# for standalone builds.
if (NOT SYCL_EMHASH_DIR)
message(FATAL_ERROR "emhash headers not found")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../sycl/cmake/modules")
include(FetchEmhash)
endif()

set(PARALLEL_HASHMAP_REPO https://github.com/greg7mdp/parallel-hashmap.git)
Expand Down
Loading