From 56abe731181b7b66032978f490c9ee8ae3b2205c Mon Sep 17 00:00:00 2001 From: Tuan Le Date: Mon, 26 Jul 2010 21:37:08 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=22066 --- samples/nvopencl/nvopencl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/nvopencl/nvopencl.cpp b/samples/nvopencl/nvopencl.cpp index 9852cb9615..0ae00c167d 100644 --- a/samples/nvopencl/nvopencl.cpp +++ b/samples/nvopencl/nvopencl.cpp @@ -457,9 +457,9 @@ int initialize_cl(void) { cl_int status = 0; size_t deviceListSize; - localThreads[0] = 400; + localThreads[0] = LOCAL_WORK_SIZE; // rounded up to the nearest multiple of the LocalWorkSize - globalThreads[0] = shrRoundUp(400,width*height); + globalThreads[0] = shrRoundUp((int)(localThreads[0]),width*height); /* * Have a look at the available platforms and pick either