Make output buffer write only as per Diapolo's suggestion.
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;