Skip to content

Commit

Permalink
remove MyStreamSynchronize
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausT committed May 1, 2015
1 parent 518d6ba commit f2dfd82
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 33 deletions.
2 changes: 0 additions & 2 deletions Algo256/blake256.cu
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ extern int scanhash_blake256(int thr_id, uint32_t *pdata, uint32_t *ptarget,
#endif
//applog_hash((uint8_t*)ptarget);
//applog_compare_hash((uint8_t*)vhashcpu,(uint8_t*)ptarget);
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return rc;
}
else if (opt_debug) {
Expand All @@ -494,6 +493,5 @@ extern int scanhash_blake256(int thr_id, uint32_t *pdata, uint32_t *ptarget,

*hashes_done = pdata[19] - first_nonce;

MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return rc;
}
2 changes: 0 additions & 2 deletions cuda_nist5.cu
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ extern int scanhash_nist5(int thr_id, uint32_t *pdata,
pdata[19] = h_found[thr_id][0];
if (opt_benchmark)
applog(LOG_INFO, "GPU #%d Found nounce %08x", device_map[thr_id], h_found[thr_id][0]);
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -192,6 +191,5 @@ extern int scanhash_nist5(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
3 changes: 0 additions & 3 deletions lyra2/lyra2RE.cu
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ extern int scanhash_lyra2(int thr_id, uint32_t *pdata,
keccak256_cpu_hash_32(thr_id, throughput, pdata[19], d_hash[thr_id]);
lyra2_cpu_hash_32(thr_id, throughput, pdata[19], d_hash[thr_id]);
skein256_cpu_hash_32(thr_id, throughput, pdata[19], d_hash[thr_id]);
//MyStreamSynchronize(NULL, 2, thr_id);
groestl256_cpu_hash_32(thr_id, throughput, pdata[19], d_hash[thr_id], foundNonce);
if (foundNonce[0] != 0)
{
Expand Down Expand Up @@ -145,7 +144,6 @@ extern int scanhash_lyra2(int thr_id, uint32_t *pdata,
}
pdata[19] = foundNonce[0];
if (opt_benchmark) applog(LOG_INFO, "GPU #%d: Found nounce %08x", device_map[thr_id], foundNonce[0]);
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -159,6 +157,5 @@ extern int scanhash_lyra2(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
6 changes: 0 additions & 6 deletions pentablake.cu
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ void pentablake_cpu_hash_80(int thr_id, uint32_t threads, const uint32_t startNo
dim3 block(TPB);

pentablake_gpu_hash_80 <<<grid, block>>> (threads, startNounce, d_outputHash);

//MyStreamSynchronize(NULL, thr_id);
}


Expand Down Expand Up @@ -372,8 +370,6 @@ void pentablake_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce,
dim3 block(TPB);

pentablake_gpu_hash_64 <<<grid, block>>> (threads, startNounce, (uint64_t*)d_outputHash);

//MyStreamSynchronize(NULL, thr_id);
}

#if 0
Expand Down Expand Up @@ -530,7 +526,6 @@ extern int scanhash_pentablake(int thr_id, uint32_t *pdata, uint32_t *ptarget,
rc++;
}
pdata[19] = foundNonce;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return rc;
}
else if (vhashcpu[7] > Htarg) {
Expand All @@ -545,6 +540,5 @@ extern int scanhash_pentablake(int thr_id, uint32_t *pdata, uint32_t *ptarget,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return rc;
}
1 change: 0 additions & 1 deletion qubit/deep.cu
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,5 @@ extern int scanhash_deep(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
2 changes: 0 additions & 2 deletions qubit/doom.cu
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ extern int scanhash_doom(int thr_id, uint32_t *pdata,
}

pdata[19] += throughput; CUDA_SAFE_CALL(cudaGetLastError());
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
2 changes: 0 additions & 2 deletions qubit/qubit.cu
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ extern int scanhash_qubit(int thr_id, uint32_t *pdata,
pdata[19] = h_found[thr_id][0];
if (opt_benchmark)
applog(LOG_INFO, "GPU #%d Found nounce %08x", device_map[thr_id], h_found[thr_id][0]);
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -204,6 +203,5 @@ extern int scanhash_qubit(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
1 change: 0 additions & 1 deletion x11/fresh.cu
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,5 @@ extern int scanhash_fresh(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
2 changes: 0 additions & 2 deletions x11/s3.cu
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ extern int scanhash_s3(int thr_id, uint32_t *pdata,
pdata[19] = h_found[thr_id][0];
if (opt_benchmark)
applog(LOG_INFO, "GPU #%d Found nounce %08x", device_map[thr_id], h_found[thr_id][0]);
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -165,6 +164,5 @@ extern int scanhash_s3(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
1 change: 0 additions & 1 deletion x11/x11.cu
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,5 @@ extern int scanhash_x11(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
2 changes: 0 additions & 2 deletions x13/x13.cu
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ extern int scanhash_x13(int thr_id, uint32_t *pdata,
pdata[19] = h_found[thr_id][0];
if (opt_benchmark)
applog(LOG_INFO, "GPU #%d Found nounce %08x", device_map[thr_id], h_found[thr_id][0]);
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -286,6 +285,5 @@ extern int scanhash_x13(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
2 changes: 0 additions & 2 deletions x15/whirlpoolx.cu
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ int scanhash_whirlpoolx(int thr_id, uint32_t *pdata, uint32_t *ptarget, uint32_t
if (opt_benchmark)
applog(LOG_INFO, "GPU #%d: found nonce %08x", device_map[thr_id], foundNonce[0], vhash64[7]);
pdata[19] = foundNonce[0];
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -122,6 +121,5 @@ int scanhash_whirlpoolx(int thr_id, uint32_t *pdata, uint32_t *ptarget, uint32_t
pdata[19] += throughput;
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));
*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
4 changes: 0 additions & 4 deletions x15/x14.cu
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ extern int scanhash_x14(int thr_id, uint32_t *pdata,
x13_fugue512_cpu_hash_64(thr_id, throughput, pdata[19], d_hash[thr_id]);
x14_shabal512_cpu_hash_64(thr_id, throughput, pdata[19], d_hash[thr_id]);

// MyStreamSynchronize(NULL, 1, thr_id);

uint32_t foundNonce = cuda_check_hash(thr_id, throughput, pdata[19], d_hash[thr_id]);
if (foundNonce != UINT32_MAX)
{
Expand Down Expand Up @@ -266,7 +264,6 @@ extern int scanhash_x14(int thr_id, uint32_t *pdata,
}
}
pdata[19] = foundNonce;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -278,6 +275,5 @@ extern int scanhash_x14(int thr_id, uint32_t *pdata,
} while (!work_restart[thr_id].restart && ((uint64_t)max_nonce > ((uint64_t)(pdata[19]) + (uint64_t)throughput)));

*hashes_done = pdata[19] - first_nonce + 1;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}
3 changes: 0 additions & 3 deletions x15/x15.cu
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ extern int scanhash_x15(int thr_id, uint32_t *pdata,
x13_fugue512_cpu_hash_64(thr_id, throughput, pdata[19], d_hash[thr_id]);
x14_shabal512_cpu_hash_64(thr_id, throughput, pdata[19], d_hash[thr_id]);
x15_whirlpool_cpu_hash_64(thr_id, throughput, pdata[19], d_hash[thr_id]);
// MyStreamSynchronize(NULL, 1, thr_id);

uint32_t foundNonce = cuda_check_hash(thr_id, throughput, pdata[19], d_hash[thr_id]);
if (foundNonce != UINT32_MAX)
Expand Down Expand Up @@ -283,7 +282,6 @@ extern int scanhash_x15(int thr_id, uint32_t *pdata,
if (opt_benchmark)
applog(LOG_INFO, "GPU #%d: found nounce %08x", device_map[thr_id], foundNonce);
pdata[19] = foundNonce;
MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return res;
}
else
Expand All @@ -297,6 +295,5 @@ extern int scanhash_x15(int thr_id, uint32_t *pdata,

*hashes_done = pdata[19] - first_nonce + 1;

MyStreamSynchronize(NULL, NULL, device_map[thr_id]);
return 0;
}

0 comments on commit f2dfd82

Please sign in to comment.