Skip to content

Commit

Permalink
cosmetic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markusbattarbee committed May 30, 2024
1 parent 3f581dc commit 6376ffe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions include/hashinator/kernels_AMD.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ __global__ void insert_kernel(KEY_TYPE* keys, VAL_TYPE* vals, hash_pair<KEY_TYPE
const int sizePower = info->sizePower;
size_t* d_overflow = &(info->currentMaxBucketOverflow);
size_t* d_fill = &(info->fill);
status* err = &(info->err);
//status* err = &(info->err);
const int VIRTUALWARP = WARPSIZE / elementsPerWarp;
const size_t tid = threadIdx.x + blockIdx.x * blockDim.x;
const size_t wid = tid / VIRTUALWARP;
Expand Down Expand Up @@ -424,7 +424,8 @@ __global__ void delete_kernel(KEY_TYPE* keys, hash_pair<KEY_TYPE, VAL_TYPE>* buc
const size_t blockWid = proper_wid % (WARPSIZE / 4); // we have twice the warpsize and half the warps per block
const int sizePower = info->sizePower;
const size_t maxoverflow = info->currentMaxBucketOverflow;
size_t* d_tombstoneCounter = &info->tombstoneCounter;
size_t* d_tombstoneCounter = &(info->tombstoneCounter);
//status* err = &(info->err);

__shared__ uint32_t deleteMask[WARPSIZE / 2];

Expand Down Expand Up @@ -511,7 +512,7 @@ __global__ void insert_index_kernel(KEY_TYPE* keys, hash_pair<KEY_TYPE, VAL_TYPE

size_t* d_overflow = &(info->currentMaxBucketOverflow);
size_t* d_fill = &(info->fill);
status* err = &(info->err);
//status* err = &(info->err);
const int sizePower = info->sizePower;
//const size_t maxoverflow = info->currentMaxBucketOverflow;
const int VIRTUALWARP = WARPSIZE / elementsPerWarp;
Expand Down
2 changes: 1 addition & 1 deletion include/hashinator/kernels_NVIDIA.h
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ __global__ void delete_kernel(KEY_TYPE* keys, hash_pair<KEY_TYPE, VAL_TYPE>* buc
const size_t blockWid = proper_wid % WARPSIZE;
const int sizePower = info->sizePower;
const size_t maxoverflow = info->currentMaxBucketOverflow;
size_t* d_tombstoneCounter = &info->tombstoneCounter;
size_t* d_tombstoneCounter = &(info->tombstoneCounter);
__shared__ uint32_t deleteMask[WARPSIZE];
// Early quit if we have more warps than elements to handle
if (wid >= len) {
Expand Down

0 comments on commit 6376ffe

Please sign in to comment.