Commit 89b32b17382d5782629fd5c57c8641e8f610a350

Con Kolivas 2012-02-20T09:28:01

Officially support diakgcn in code and docs.

diff --git a/README b/README
index f3c0a26..0a949fa 100644
--- a/README
+++ b/README
@@ -183,7 +183,7 @@ GPU only options:
 --gpu-vddc <arg>    Set the GPU voltage in Volts - one value for all or separate by commas for per card.
 --intensity|-I <arg> Intensity of GPU scanning (d or -10 -> 10, default: d to maintain desktop interactivity)
 --kernel-path|-K <arg> Specify a path to where the kernel .cl files are (default: "/usr/local/bin")
---kernel|-k <arg>   Select kernel to use (poclbm or phatk - default: auto)
+--kernel|-k <arg>   Select kernel to use (poclbm, phatk or diakgcn - default: auto)
 --no-restart        Do not attempt to restart GPUs that hang
 --temp-hysteresis <arg> Set how much the temperature can fluctuate outside limits when automanaging speeds (default: 3)
 --temp-overheat <arg> Overheat temperature when automatically managing fan and GPU speeds (default: 85)
diff --git a/cgminer.c b/cgminer.c
index d7dfb47..0e2d449 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -714,7 +714,7 @@ static struct opt_table opt_config_table[] = {
 	             "Specify a path to where the kernel .cl files are"),
 	OPT_WITH_ARG("--kernel|-k",
 		     opt_set_charp, NULL, &opt_kernel,
-		     "Select kernel to use (poclbm or phatk - default: auto)"),
+		     "Select kernel to use (poclbm, phatk or diakgcn - default: auto)"),
 #endif
 	OPT_WITHOUT_ARG("--load-balance",
 		     set_loadbalance, &pool_strategy,
diff --git a/device-gpu.c b/device-gpu.c
index 44aa499..836d077 100644
--- a/device-gpu.c
+++ b/device-gpu.c
@@ -1000,7 +1000,7 @@ static void opencl_detect()
 		    strcmp(opt_kernel, "phatk") &&
 		    strcmp(opt_kernel, "diakgcn") &&
 		    strcmp(opt_kernel, "diablo"))
-			quit(1, "Invalid kernel name specified - must be poclbm or phatk");
+			quit(1, "Invalid kernel name specified - must be poclbm, phatk or diakgcn");
 		if (!strcmp(opt_kernel, "diakgcn"))
 			chosen_kernel = KL_DIAKGCN;
 		else if (!strcmp(opt_kernel, "poclbm"))