mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=22067
This commit is contained in:
parent
56abe73118
commit
db3861d530
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue