Skip to content

Commit 2b40577

Browse files
committed
calc vec length bug
1 parent 892b5b7 commit 2b40577

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/sketch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ class Sketch {
8282
* @return The length of the vector to sketch
8383
*/
8484
static vec_t calc_vector_length(node_id_t num_vertices) {
85-
// return ceil(double(num_vertices) * (num_vertices - 1) / 2);
85+
return ceil(double(num_vertices) * (num_vertices - 1) / 2);
8686
// return num_vertices * 2;
87-
return 50; // round to something thats approx 2^6
87+
// return 50; // round to something thats approx 2^6
8888
// return 3;
8989
// return 15;
9090
// return 1 + num_vertices / 16 ;

src/sketch_columns.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void FixedSizeSketchColumn::atomic_update(const vec_t update) {
125125
det_gamma.fetch_xor(checksum);
126126
bucket_alpha.fetch_xor(update);
127127
bucket_gamma.fetch_xor(checksum);
128+
// todo - gccc intrinsics?
128129

129130
}
130131

0 commit comments

Comments
 (0)