1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

Cope with when we cannot set intensity low enough to meet dynamic interval by inducing a forced sleep.

This commit is contained in:
Con Kolivas 2012-07-14 11:07:15 +10:00
parent 238db52aa6
commit bd10764e76

View File

@ -1428,6 +1428,8 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
if (gpu->gpu_us_average > dynamic_us) {
if (gpu->intensity > MIN_INTENSITY)
--gpu->intensity;
else
nmsleep(opt_dynamic_interval / 2 ? : 1);
} else if (gpu->gpu_us_average < dynamic_us / 2) {
if (gpu->intensity < MAX_INTENSITY)
++gpu->intensity;