|
|
@ -66,7 +66,8 @@ extern "C" int scanhash_lyra2v3(int thr_id, struct work* work, uint32_t max_nonc |
|
|
|
const uint32_t first_nonce = pdata[19]; |
|
|
|
const uint32_t first_nonce = pdata[19]; |
|
|
|
int dev_id = device_map[thr_id]; |
|
|
|
int dev_id = device_map[thr_id]; |
|
|
|
int intensity = (device_sm[dev_id] < 500) ? 18 : is_windows() ? 19 : 20; |
|
|
|
int intensity = (device_sm[dev_id] < 500) ? 18 : is_windows() ? 19 : 20; |
|
|
|
if (strstr(device_name[dev_id], "GTX 10")) intensity = 20; |
|
|
|
if (strstr(device_name[dev_id], "GTX 1")) intensity = 20; |
|
|
|
|
|
|
|
if (strstr(device_name[dev_id], "RTX 20")) intensity = 20; |
|
|
|
uint32_t throughput = cuda_default_throughput(dev_id, 1UL << intensity); |
|
|
|
uint32_t throughput = cuda_default_throughput(dev_id, 1UL << intensity); |
|
|
|
if (init[thr_id]) throughput = min(throughput, max_nonce - first_nonce); |
|
|
|
if (init[thr_id]) throughput = min(throughput, max_nonce - first_nonce); |
|
|
|
|
|
|
|
|
|
|
|