Commit 808d5b07f996f29ab1c19f3aa8f45c48f2adf16c

Con Kolivas 2011-06-24T11:17:58

Make output debug.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/ocl.c b/ocl.c
index db17de2..a6d99ed 100644
--- a/ocl.c
+++ b/ocl.c
@@ -286,7 +286,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
 		applog(LOG_ERR, "Error: Failed to clGetDeviceInfo when trying to get CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT");
 		return NULL;
 	}
-	applog(LOG_INFO, "Preferred vector width reported %d", clState->preferred_vwidth);
+	if (opt_debug)
+		applog(LOG_DEBUG, "Preferred vector width reported %d", clState->preferred_vwidth);
 
 	status = clGetDeviceInfo(devices[gpu], CL_DEVICE_MAX_WORK_GROUP_SIZE, sizeof(size_t), (void *)&clState->max_work_size, NULL);
 	if (status != CL_SUCCESS) {