mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
Rename to correct llil4map.cc name
This commit is contained in:
Vendored
+7
-7
@@ -202,21 +202,21 @@ if (PHMAP_BUILD_EXAMPLES)
|
||||
add_executable(ex_mt_word_counter examples/mt_word_counter.cc phmap.natvis)
|
||||
add_executable(ex_p_bench examples/p_bench.cc phmap.natvis)
|
||||
|
||||
## set(Boost_INCLUDE_DIR /home/greg/dev/boost_1_82_0) # if boost installed in non-standard location
|
||||
#set(Boost_INCLUDE_DIR /home/greg/dev/boost_1_82_0) # if boost installed in non-standard location
|
||||
set(Boost_USE_STATIC_LIBS OFF)
|
||||
set(Boost_USE_MULTITHREADED ON)
|
||||
set(Boost_USE_STATIC_RUNTIME OFF)
|
||||
|
||||
# lill4map.cc - see https://www.perlmonks.com/?node_id=11149643
|
||||
# llil4map.cc - see https://www.perlmonks.com/?node_id=11149643
|
||||
# -------------------------------------------------------------
|
||||
find_package(OpenMP)
|
||||
find_package(Boost 1.70.0)
|
||||
if (OPENMP_FOUND AND Boost_FOUND AND "cxx_std_20" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
|
||||
add_executable(ex_lill4map examples/lill4map.cc phmap.natvis)
|
||||
target_include_directories(ex_lill4map PRIVATE ${Boost_INCLUDE_DIRS})
|
||||
target_compile_features(ex_lill4map PUBLIC cxx_std_20)
|
||||
target_link_libraries(ex_lill4map PRIVATE OpenMP::OpenMP_CXX)
|
||||
target_compile_options(ex_lill4map PRIVATE "${OpenMP_CXX_FLAGS}")
|
||||
add_executable(ex_llil4map examples/llil4map.cc phmap.natvis)
|
||||
target_include_directories(ex_llil4map PRIVATE ${Boost_INCLUDE_DIRS})
|
||||
target_compile_features(ex_llil4map PUBLIC cxx_std_20)
|
||||
target_link_libraries(ex_llil4map PRIVATE OpenMP::OpenMP_CXX)
|
||||
target_compile_options(ex_llil4map PRIVATE "${OpenMP_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
target_link_libraries(ex_knucleotide Threads::Threads)
|
||||
|
||||
@@ -116,7 +116,7 @@ typedef uint32_t int_type;
|
||||
// See also https://backlinko.com/google-keyword-study
|
||||
//
|
||||
// To use (limited length) fixed length strings uncomment the next line.
|
||||
//#define MAX_STR_LEN_L (size_t) 12
|
||||
#define MAX_STR_LEN_L (size_t) 12
|
||||
|
||||
#ifdef MAX_STR_LEN_L
|
||||
struct str_type : std::array<char, MAX_STR_LEN_L> {
|
||||
Reference in New Issue
Block a user