windows: some default intensity adjustments

This commit is contained in:
Tanguy Pruvot 2017-01-30 02:09:18 +01:00
parent 2152fd102d
commit 6440a9bf41
2 changed files with 2 additions and 1 deletions

View File

@ -440,7 +440,7 @@ extern "C" int scanhash_blake2s(int thr_id, struct work *work, uint32_t max_nonc
const int dev_id = device_map[thr_id]; const int dev_id = device_map[thr_id];
int rc = 0; int rc = 0;
int intensity = 28; int intensity = is_windows() ? 25 : 28;
uint32_t throughput = cuda_default_throughput(thr_id, 1U << intensity); uint32_t throughput = cuda_default_throughput(thr_id, 1U << intensity);
if (init[thr_id]) throughput = min(throughput, max_nonce - first_nonce); if (init[thr_id]) throughput = min(throughput, max_nonce - first_nonce);

View File

@ -97,6 +97,7 @@ extern "C" int scanhash_lyra2v2(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;
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);