Permalink
Browse files

make throughput unsigned

  • Loading branch information...
1 parent 580f5eb commit 4af31b1a017f8d3dbae13d51a3da076f077947e0 @KlausT committed Dec 10, 2014
Showing with 22 additions and 22 deletions.
  1. +1 −1 JHA/jackpotcoin.cu
  2. +1 −1 cuda_nist5.cu
  3. +1 −1 heavy/heavy.cu
  4. +1 −1 keccak/keccak256.cu
  5. +1 −1 pentablake.cu
  6. +1 −1 quark/animecoin.cu
  7. +1 −1 quark/quarkcoin.cu
  8. +1 −1 qubit/deep.cu
  9. +1 −1 qubit/doom.cu
  10. +1 −1 qubit/qubit.cu
  11. +1 −1 scrypt.c
  12. +1 −1 x11/fresh.cu
  13. +1 −1 x11/s3.cu
  14. +1 −1 x11/x11.cu
  15. +4 −4 x13/x13.cu
  16. +1 −1 x15/whirlpool.cu
  17. +1 −1 x15/x14.cu
  18. +1 −1 x15/x15.cu
  19. +1 −1 x17/x17.cu
View
@@ -89,7 +89,7 @@ extern "C" int scanhash_jackpot(int thr_id, uint32_t *pdata,
if (opt_benchmark)
((uint32_t*)ptarget)[7] = 0x000f;
- int throughput = opt_work_size ? opt_work_size : (1 << 20); // 256*4096
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 20); // 256*4096
throughput = min(throughput, (int)(max_nonce - first_nonce));
static bool init[8] = {0,0,0,0,0,0,0,0};
View
@@ -74,7 +74,7 @@ extern "C" int scanhash_nist5(int thr_id, uint32_t *pdata,
((uint32_t*)ptarget)[7] = 0x5;
int intensity = (device_sm[device_map[thr_id]] > 500) ? 256*4096 * 12 : 256 * 4096 * 10;
- int throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
+ uint32_t throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
static bool init[8] = {0,0,0,0,0,0,0,0};
if (!init[thr_id])
View
@@ -159,7 +159,7 @@ int scanhash_heavy_cpp(int thr_id, uint32_t *pdata,
{
const uint32_t first_nonce = pdata[19]; /* to check */
// CUDA will process thousands of threads.
- int throughput = opt_work_size ? opt_work_size : (1 << 19); // 128*4096
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 19); // 128*4096
throughput = min(throughput, (int)(max_nonce - first_nonce));
int rc = 0;
View
@@ -43,7 +43,7 @@ extern "C" int scanhash_keccak256(int thr_id, uint32_t *pdata,
if (opt_benchmark)
((uint32_t*)ptarget)[7] = 0x0005;
- int throughput = opt_work_size ? opt_work_size : (1 << 21); // 256*256*8*4
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 21); // 256*256*8*4
throughput = min(throughput, (int)(max_nonce - first_nonce));
static bool init[8] = {0,0,0,0,0,0,0,0};
View
@@ -493,7 +493,7 @@ extern "C" int scanhash_pentablake(int thr_id, uint32_t *pdata, const uint32_t *
static bool init[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
uint32_t endiandata[20];
int rc = 0;
- int throughput = opt_work_size ? opt_work_size : (128 * 2560); // 18.5
+ uint32_t throughput = opt_work_size ? opt_work_size : (128 * 2560); // 18.5
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (extra_results[0] != MAXU) {
View
@@ -160,7 +160,7 @@ extern "C" int scanhash_anime(int thr_id, uint32_t *pdata,
{
const uint32_t first_nonce = pdata[19];
static bool init[8] = { 0 };
- int throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*2048
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*2048
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -131,7 +131,7 @@ extern "C" int scanhash_quark(int thr_id, uint32_t *pdata,
const uint32_t first_nonce = pdata[19];
static bool init[8] = { 0 };
- int throughput = opt_work_size ? opt_work_size : (1 << 20); // 256*4096
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 20); // 256*4096
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -59,7 +59,7 @@ extern "C" int scanhash_deep(int thr_id, uint32_t *pdata,
const uint32_t first_nonce = pdata[19];
static bool init[8] = {0,0,0,0,0,0,0,0};
uint32_t endiandata[20];
- int throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -40,7 +40,7 @@ extern "C" int scanhash_doom(int thr_id, uint32_t *pdata,
const uint32_t first_nonce = pdata[19];
static bool init[8] = {0,0,0,0,0,0,0,0};
uint32_t endiandata[20];
- int throughput = opt_work_size ? opt_work_size : (1 << 22); // 256*256*8*8
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 22); // 256*256*8*8
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -77,7 +77,7 @@ extern "C" int scanhash_qubit(int thr_id, uint32_t *pdata,
static bool init[8] = {0,0,0,0,0,0,0,0};
uint32_t endiandata[20];
const uint32_t first_nonce = pdata[19];
- int throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -701,7 +701,7 @@ int scanhash_scrypt(int thr_id, uint32_t *pdata,
uint32_t midstate[8];
uint32_t n = pdata[19] - 1;
const uint32_t Htarg = ptarget[7];
- int throughput = scrypt_best_throughput();
+ uint32_t throughput = scrypt_best_throughput();
int i;
#if HAVE_SHA256_4WAY
View
@@ -75,7 +75,7 @@ extern "C" int scanhash_fresh(int thr_id, uint32_t *pdata,
static bool init[8] = {0,0,0,0,0,0,0,0};
uint32_t endiandata[20];
- int throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8;
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8;
throughput = min(throughput, (int) (max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -59,7 +59,7 @@ extern "C" int scanhash_s3(int thr_id, uint32_t *pdata,
// reduce by one the intensity on windows
intensity--;
#endif
- int throughput = opt_work_size ? opt_work_size : (1 << intensity);
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << intensity);
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -131,7 +131,7 @@ extern "C" int scanhash_x11(int thr_id, uint32_t *pdata,
static bool init[8] = { 0 };
int intensity = (device_sm[device_map[thr_id]] > 500) ? 256 * 256 * 19 : 256 * 256 * 10 ;
- int throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
+ uint32_t throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
throughput = min(throughput, (int)(max_nonce - first_nonce));
View
@@ -60,9 +60,9 @@ extern void x13_fugue512_cpu_init(int thr_id, int threads);
extern uint32_t x13_fugue512_cpu_hash_64_final(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
extern void x13_fugue512_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
extern uint32_t cuda_check_cpu_hash_64(int thr_id, int threads, uint32_t startNounce, uint32_t *d_nonceVector, uint32_t *d_hash, int order);
-
-extern void x13_fugue512_cpu_setTarget(const void *ptarget);
-extern void x13_fugue512_cpu_free(int32_t thr_id);
+
+extern void x13_fugue512_cpu_setTarget(const void *ptarget);
+extern void x13_fugue512_cpu_free(int32_t thr_id);
extern void quark_compactTest_cpu_init(int thr_id, int threads);
@@ -154,7 +154,7 @@ extern "C" int scanhash_x13(int thr_id, uint32_t *pdata,
static bool init[8] = { 0 };
uint32_t endiandata[20];
int intensity = (device_sm[device_map[thr_id]] > 500) ? 256 * 256 * 20 : 256 * 256 * 10;
- int throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
+ uint32_t throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
if (opt_benchmark)
((uint32_t*)ptarget)[7] = 0x0f;
View
@@ -56,7 +56,7 @@ extern "C" int scanhash_whc(int thr_id, uint32_t *pdata,
unsigned long *hashes_done)
{
const uint32_t first_nonce = pdata[19];
- const int throughput = 256*256*8;
+ const uint32_t throughput = 256*256*8;
static bool init[8] = {0,0,0,0,0,0,0,0};
uint32_t endiandata[20];
uint32_t Htarg = ptarget[7];
View
@@ -158,7 +158,7 @@ extern "C" int scanhash_x14(int thr_id, uint32_t *pdata,
static bool init[8] = { 0 };
uint32_t endiandata[20];
int intensity = (device_sm[device_map[thr_id]] > 500) ? 256 * 256 * 20 : 256 * 256 * 10;
- int throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
+ uint32_t throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
if (opt_benchmark)
((uint32_t*)ptarget)[7] = 0x00f;
View
@@ -165,7 +165,7 @@ extern "C" int scanhash_x15(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
int intensity = (device_sm[device_map[thr_id]] > 500) ? 256 * 256 * 16 : 256 * 256 * 9;
- int throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
+ uint32_t throughput = opt_work_size ? opt_work_size : intensity; // 20=256*256*16;
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)
View
@@ -184,7 +184,7 @@ extern "C" int scanhash_x17(int thr_id, uint32_t *pdata,
{
const uint32_t first_nonce = pdata[19];
static bool init[8] = { 0 };
- int throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8;
+ uint32_t throughput = opt_work_size ? opt_work_size : (1 << 19); // 256*256*8;
throughput = min(throughput, (int)(max_nonce - first_nonce));
if (opt_benchmark)

0 comments on commit 4af31b1

Please sign in to comment.