Commit 23c01bc79cd98e8b5a2d5463ccff28ca5884eaaf

Con Kolivas 2012-02-13T13:19:04

Make output buffer write only as per Diapolo's suggestion.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ocl.c b/ocl.c
index 78d7d5c..4d2d301 100644
--- a/ocl.c
+++ b/ocl.c
@@ -726,7 +726,7 @@ built:
 		return NULL;
 	}
 
-	clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_READ_WRITE, BUFFERSIZE, NULL, &status);
+	clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_WRITE_ONLY, BUFFERSIZE, NULL, &status);
 	if (status != CL_SUCCESS) {
 		applog(LOG_ERR, "Error: clCreateBuffer (outputBuffer)");
 		return NULL;