svn path=/trunk/boinc/; revision=22067

This commit is contained in:
Tuan Le 2010-07-26 21:54:32 +00:00
parent 56abe73118
commit db3861d530
2 changed files with 3 additions and 3 deletions

View File

@ -458,8 +458,7 @@ int initialize_cl(void) {
size_t deviceListSize; size_t deviceListSize;
localThreads[0] = LOCAL_WORK_SIZE; localThreads[0] = LOCAL_WORK_SIZE;
// rounded up to the nearest multiple of the LocalWorkSize globalThreads[0] = shrRoundUp(GLOBAL_WORK_SIZE,width*height);
globalThreads[0] = shrRoundUp((int)(localThreads[0]),width*height);
/* /*
* Have a look at the available platforms and pick either * Have a look at the available platforms and pick either

View File

@ -37,7 +37,8 @@
#define KERNELS_FILEPATH "../../nvopencl_kernels.cl" // for Linux and Mac #define KERNELS_FILEPATH "../../nvopencl_kernels.cl" // for Linux and Mac
#define CHECKPOINT_FILE "matrix_inversion_state" #define CHECKPOINT_FILE "matrix_inversion_state"
#define LOCAL_WORK_SIZE 400 #define LOCAL_WORK_SIZE 1
#define GLOBAL_WORK_SIZE 400
#define MATRIX_SIZE 10 #define MATRIX_SIZE 10
#define NUM_ITERATIONS 501 // execute the kernel NUM_ITERATIONS times #define NUM_ITERATIONS 501 // execute the kernel NUM_ITERATIONS times