Commit 64f268c8c77c428beb87c27e76fc216cb5335488

ckolivas 2011-06-24T17:00:54

Display correct worksize.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/ocl.c b/ocl.c
index a6d99ed..108d6c7 100644
--- a/ocl.c
+++ b/ocl.c
@@ -341,8 +341,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 	} else if (opt_debug)
 		applog(LOG_DEBUG, "cl_amd_media_ops not found, will not BFI_INT patch");
 
-	applog(LOG_INFO, "Initialising kernel with%s BFI_INT patching, %d vectors and %d worksize",
-	       hasBitAlign ? "" : "out", clState->preferred_vwidth, clState->max_work_size);
+	applog(LOG_INFO, "Initialising kernel with%s BFI_INT patching, %d vectors and worksize %d",
+	       hasBitAlign ? "" : "out", clState->preferred_vwidth, clState->max_work_size / clState->preferred_vwidth);
 
 	clState->program = clCreateProgramWithSource(clState->context, 1, (const char **)&source, sourceSize, &status);
 	if(status != CL_SUCCESS)