Commit 6dc10efaa56a3251ee83a7111ca930deb433e531

Con Kolivas 2011-10-06T13:13:19

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/main.c b/main.c
index 91197d4..302cc8e 100644
--- a/main.c
+++ b/main.c
@@ -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;