1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Allow dynamic to adjust up to MAX_INTENSITY

This commit is contained in:
Kano 2012-01-26 16:03:26 +11:00
parent 487327f83d
commit 5e9676c23c

2
main.c
View File

@ -5745,7 +5745,7 @@ static uint64_t opencl_scanhash(struct thr_info *thr, struct work *work, uint64_
if (gpu->intensity > MIN_INTENSITY)
--gpu->intensity;
} else if (gpu_ms_average < 3) {
if (gpu->intensity < 10) // Should this be MAX_INTENSITY?
if (gpu->intensity < MAX_INTENSITY)
++gpu->intensity;
}
}