Skip to content

Commit

Permalink
v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelGorny committed Jan 23, 2022
1 parent eadb7bb commit 60ef7a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WifSolverCuda/Worker1.cu
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ __global__ void kernelCompressed(bool* buffResult, bool* buffCollectorWork, uint

__global__ void resultCollector(bool* buffResult, uint64_t* buffCombinedResult, const uint64_t threadNumberOfChecks) {
int64_t tIx = blockIdx.x * blockDim.x ;
buffCombinedResult[blockIdx.x] = 0;
buffCombinedResult[blockIdx.x] = 0xffffffffffff;
for (uint64_t i = 0, resultIx = tIx * threadNumberOfChecks; i < threadNumberOfChecks; i++, resultIx++) {
if (buffResult[resultIx]) {
buffCombinedResult[blockIdx.x] = resultIx;
Expand Down
7 changes: 2 additions & 5 deletions WifSolverCuda/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Secp256K1* secp;

int main(int argc, char** argv)
{
printf("WifSolver 0.3.2\n\n");
printf("WifSolver 0.3.3\n\n");

if (readArgs(argc, argv)) {
showHelp();
Expand Down Expand Up @@ -189,10 +189,7 @@ cudaError_t processCuda() {
}
anyResult = false;
for (int i = 0; i < COLLECTOR_SIZE; i++) {
if (buffResult[i] == 0 && noZero) {
break;
}
if (buffResult[i] >= 0) {
if (buffResult[i] != 0xffffffffffff) {
noZero = true;
Int toTest = new Int(&RANGE_START);
Int diff = new Int(&STRIDE);
Expand Down

0 comments on commit 60ef7a4

Please sign in to comment.