Browse Source

Bugfix: opencl: Output buffer must be readable by kernel since it is used with a count/position iterator

Luke Dashjr 11 years ago
parent
commit
88688f288f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ocl.c

+ 1 - 1
ocl.c

@@ -684,7 +684,7 @@ _clState *opencl_create_clState(unsigned int gpu, char *name, size_t nameSize)
 		data->vwidth = clState->preferred_vwidth;
 	}
 
-	clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_WRITE_ONLY, OPENCL_MAX_BUFFERSIZE, NULL, &status);
+	clState->outputBuffer = clCreateBuffer(clState->context, 0, OPENCL_MAX_BUFFERSIZE, NULL, &status);
 	if (status != CL_SUCCESS) {
 		applog(LOG_ERR, "Error %d: clCreateBuffer (outputBuffer)", status);
 		return false;