Browse Source

Bugfix: opencl: Skip NULL kernel interface entry

Luke Dashjr 11 years ago
parent
commit
4de46f145f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-opencl.c

+ 1 - 1
driver-opencl.c

@@ -383,7 +383,7 @@ _SET_INT_LIST(thread_concurrency, true, thread_concurrency)
 
 
 enum cl_kernels select_kernel(const char * const arg)
 enum cl_kernels select_kernel(const char * const arg)
 {
 {
-	for (unsigned i = 0; i < (unsigned)OPENCL_KERNEL_INTERFACE_COUNT; ++i)
+	for (unsigned i = 1; i < (unsigned)OPENCL_KERNEL_INTERFACE_COUNT; ++i)
 		if (!strcasecmp(arg, kernel_interfaces[i].kiname))
 		if (!strcasecmp(arg, kernel_interfaces[i].kiname))
 			return i;
 			return i;
 	return KL_NONE;
 	return KL_NONE;