Browse Source

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

Con Kolivas 14 years ago
parent
commit
6dc10efaa5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main.c

+ 2 - 0
main.c

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