1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Don't try to build adl features without having adl.

This commit is contained in:
Con Kolivas 2011-10-06 13:13:19 +11:00
parent 3e527c6af5
commit 6dc10efaa5

2
main.c
View File

@ -5437,6 +5437,7 @@ int main (int argc, char *argv[])
for (i = 0; i < MAX_GPUDEVICES; i++)
if (gpu_devices[i] && i + 1 > nDevs)
quit (1, "Command line options set a device that doesn't exist");
#ifdef HAVE_ADL
for (i = 0; i < nDevs; i++) {
/* Make sure we do not attempt to adl manage devices
* that we disable */
@ -5447,6 +5448,7 @@ int main (int argc, char *argv[])
gpus[i].gpu_fan =
gpus[i].gpu_powertune = 0;
}
#endif
} else {
for (i = 0; i < nDevs; i++)
gpu_devices[i] = true;