|
|
@ -127,7 +127,7 @@ struct check_nonce_for_remove |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static bool init[8] = { 0 }; |
|
|
|
static bool init[8] = {0,0,0,0,0,0,0,0}; |
|
|
|
|
|
|
|
|
|
|
|
__host__ |
|
|
|
__host__ |
|
|
|
int scanhash_heavy(int thr_id, uint32_t *pdata, |
|
|
|
int scanhash_heavy(int thr_id, uint32_t *pdata, |
|
|
@ -135,8 +135,8 @@ int scanhash_heavy(int thr_id, uint32_t *pdata, |
|
|
|
unsigned long *hashes_done, uint32_t maxvote, int blocklen) |
|
|
|
unsigned long *hashes_done, uint32_t maxvote, int blocklen) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const uint32_t first_nonce = pdata[19]; |
|
|
|
const uint32_t first_nonce = pdata[19]; |
|
|
|
// Remove 256 to allow -i 20 |
|
|
|
// CUDA will process thousands of threads. |
|
|
|
uint32_t throughput = opt_work_size ? opt_work_size : (1 << 19) - 256; // 256*2048 |
|
|
|
int throughput = opt_work_size ? opt_work_size : (1 << 19) - 256; // 256*2048 |
|
|
|
throughput = min(throughput, (int)(max_nonce - first_nonce)); |
|
|
|
throughput = min(throughput, (int)(max_nonce - first_nonce)); |
|
|
|
|
|
|
|
|
|
|
|
int rc = 0; |
|
|
|
int rc = 0; |
|
|
|