Skip to content

Commit

Permalink
minor fix to move along with silentarmy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
maztheman committed Nov 10, 2016
1 parent 7aec7fd commit a6fdc19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cuda_silentarmy/kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ void kernel_sols(char *ht0, char *ht1, sols_t *sols)
uint ran = 0;
for (uint ii = tid; ii < (uint)NR_ROWS; ii += (blockDim.x * gridDim.x)) {
ran++;
ulong collisions[5];
ulong collisions[1];
a = htabs[ht_i] + ii * NR_SLOTS * SLOT_LEN;
cnt = *(uint *)a;
cnt = min(cnt, (uint)NR_SLOTS); // handle possible overflow in last round
Expand Down
2 changes: 1 addition & 1 deletion ocl_silentarmy/zcash/gpu/kernel.cl
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ void kernel_sols(__global char *ht0, __global char *ht1, __global sols_t *sols)
uint ref_i, ref_j;
// it's ok for the collisions array to be so small, as if it fills up
// the potential solutions are likely invalid (many duplicate inputs)
ulong collisions[5];
ulong collisions[1];
uint coll;
// in the final hash table, we are looking for a match on both the bits
// part of the previous PREFIX colliding bits, and the last PREFIX bits.
Expand Down

0 comments on commit a6fdc19

Please sign in to comment.