From 88c5cc71e4b5d4bd4b4809cd9442b982a37ba77e Mon Sep 17 00:00:00 2001 From: MitchellHansen Date: Thu, 31 Dec 2015 23:20:31 -0800 Subject: [PATCH] IT WORKSSSSSSS!!!!!!!!! performance sucks, but IT WORKS!!!!! --- Conway_OpenCL/HelloWorld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Conway_OpenCL/HelloWorld.cpp b/Conway_OpenCL/HelloWorld.cpp index a6b4c10..d72e703 100644 --- a/Conway_OpenCL/HelloWorld.cpp +++ b/Conway_OpenCL/HelloWorld.cpp @@ -223,7 +223,7 @@ int main(int argc, char* argv[]) //status = clEnqueueWriteBuffer(commandQueue, inputBuffer, CL_TRUE, 0, GRID_WIDTH * GRID_HEIGHT * 2 * sizeof(char), (void*)grid, NULL, 0, NULL); // One work item per group, don't really know if this impacts performance - size_t global_work_size[1] = { 100 }; + size_t global_work_size[1] = { GRID_HEIGHT }; // Run the kernel status = clEnqueueNDRangeKernel(commandQueue, kernel, 1, NULL, global_work_size, NULL, 0, NULL, NULL);