Skip to content

Commit

Permalink
Merge branch 'dev' into pass_info
Browse files Browse the repository at this point in the history
  • Loading branch information
markusbattarbee committed May 30, 2024
2 parents 6376ffe + 5ecd282 commit c2f7abd
Show file tree
Hide file tree
Showing 5 changed files with 247 additions and 250 deletions.
6 changes: 4 additions & 2 deletions include/hashinator/hashers.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,12 @@ class Hasher {
}

// Reset wrapper for all elements
static void reset_all(hash_pair<KEY_TYPE, VAL_TYPE>* dst, Hashinator::Info* info, size_t len, split_gpuStream_t s = 0) {
static void reset_all(hash_pair<KEY_TYPE, VAL_TYPE>* dst, Hashinator::Info* info, size_t len,
split_gpuStream_t s = 0) {
// fast ceil for positive ints
size_t blocksNeeded = len / defaults::MAX_BLOCKSIZE + (len % defaults::MAX_BLOCKSIZE != 0);
reset_all_to_empty<KEY_TYPE, VAL_TYPE, EMPTYBUCKET><<<blocksNeeded, defaults::MAX_BLOCKSIZE, 0, s>>>(dst,info, len);
reset_all_to_empty<KEY_TYPE, VAL_TYPE, EMPTYBUCKET>
<<<blocksNeeded, defaults::MAX_BLOCKSIZE, 0, s>>>(dst,info, len);
SPLIT_CHECK_ERR(split_gpuStreamSynchronize(s));
}

Expand Down
Loading

0 comments on commit c2f7abd

Please sign in to comment.