1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

On dual GPUs, only autotune the shared fan once per gpu autotune cycle.

This commit is contained in:
ckolivas 2012-01-25 16:34:39 +11:00
parent c009c6cd74
commit 4995b7c241

4
adl.c
View File

@ -917,7 +917,9 @@ void gpu_autotune(int gpu, bool *enable)
if (temp && fanpercent >= 0 && ga->autofan) { if (temp && fanpercent >= 0 && ga->autofan) {
if (!ga->twin) if (!ga->twin)
fan_autotune(gpu, temp, fanpercent, &fan_optimal); fan_autotune(gpu, temp, fanpercent, &fan_optimal);
else { else if (ga->autofan && (ga->has_fanspeed || !ga->twin->autofan)) {
/* On linked GPUs, we autotune the fan only once, based
* on the highest temperature from either GPUs */
int hightemp, fan_gpu; int hightemp, fan_gpu;
if (twintemp > temp) if (twintemp > temp)