Skip to content

Commit 7b9d587

Browse files
committed
stuff
1 parent 12ef6d7 commit 7b9d587

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ FetchContent_Declare(
7070
)
7171

7272
FetchContent_Declare(
73-
highway
73+
hwy
7474

7575
GIT_REPOSITORY https://github.com/google/highway.git
7676
GIT_TAG 1.2.0
@@ -80,10 +80,10 @@ set(HWY_ENABLE_EXAMPLES OFF CACHE INTERNAL "Disable highway examples")
8080
set(HWY_ENABLE_TESTS OFF CACHE INTERNAL "Disable highway tests")
8181

8282
# Get google highway
83-
FetchContent_MakeAvailable(highway)
83+
FetchContent_MakeAvailable(hwy)
8484

8585
# Ensure highway target is explicitly added
86-
add_library(highway INTERFACE IMPORTED)
86+
#add_library(highway INTERFACE IMPORTED)
8787

8888
if (BUILD_BENCH)
8989
# Get Google Benchmark
@@ -121,8 +121,8 @@ add_library(GraphZeppelin
121121
src/sketch.cpp
122122
src/recovery.cpp
123123
src/util.cpp)
124-
add_dependencies(GraphZeppelin GutterTree StreamingUtilities highway)
125-
target_link_libraries(GraphZeppelin PUBLIC xxhash GutterTree StreamingUtilities highway)
124+
add_dependencies(GraphZeppelin GutterTree StreamingUtilities hwy)
125+
target_link_libraries(GraphZeppelin PUBLIC xxhash GutterTree StreamingUtilities hwy)
126126
target_include_directories(GraphZeppelin PUBLIC include/)
127127
target_compile_options(GraphZeppelin PUBLIC -fopenmp)
128128
target_link_options(GraphZeppelin PUBLIC -fopenmp)
@@ -137,8 +137,8 @@ add_library(GraphZeppelinVerifyCC
137137
src/recovery.cpp
138138
src/util.cpp
139139
test/util/graph_verifier.cpp)
140-
add_dependencies(GraphZeppelinVerifyCC GutterTree StreamingUtilities highway)
141-
target_link_libraries(GraphZeppelinVerifyCC PUBLIC xxhash GutterTree StreamingUtilities highway )
140+
add_dependencies(GraphZeppelinVerifyCC GutterTree StreamingUtilities hwy)
141+
target_link_libraries(GraphZeppelinVerifyCC PUBLIC xxhash GutterTree StreamingUtilities hwy )
142142
target_include_directories(GraphZeppelinVerifyCC PUBLIC include/ include/test/)
143143
target_compile_options(GraphZeppelinVerifyCC PUBLIC -fopenmp)
144144
target_link_options(GraphZeppelinVerifyCC PUBLIC -fopenmp)

src/sketch.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,11 @@ void Sketch::merge(const Sketch &other) {
444444
uint32_t *our_starting_bucket = (uint32_t*) (buckets + our_starting_bucket_idx);
445445
uint32_t *other_starting_bucket = (uint32_t*) (other.buckets + other_starting_bucket_idx);
446446

447-
hwy::HWY_NAMESPACE::simd_xor(our_starting_bucket, other_starting_bucket,
448-
num_words);
449-
// for (size_t word=0; word < num_words; ++word) {
450-
// our_starting_bucket[word] ^= other_starting_bucket[word];
451-
// }
447+
// hwy::HWY_NAMESPACE::simd_xor(our_starting_bucket, other_starting_bucket,
448+
// num_words);
449+
for (size_t word=0; word < num_words; ++word) {
450+
our_starting_bucket[word] ^= other_starting_bucket[word];
451+
}
452452
// NO SIMD but more stable
453453
// for (size_t bucket_id=0; bucket_id < other_effective_size; bucket_id++) {
454454
// get_bucket(i, bucket_id) ^= other.get_bucket(i, bucket_id);

0 commit comments

Comments
 (0)