mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=21980
This commit is contained in:
parent
4f488eb55b
commit
b351c2225f
|
@ -733,10 +733,10 @@ int check_device_capability(size_t *globalThreads, size_t *localThreads) {
|
||||||
globalThreads[0] = width*height; // # of threads associated with global matrixSize.
|
globalThreads[0] = width*height; // # of threads associated with global matrixSize.
|
||||||
localThreads[0] = 1; // # of threads associated with local matrixSize.
|
localThreads[0] = 1; // # of threads associated with local matrixSize.
|
||||||
|
|
||||||
if (globalThreads[0] > maxWorkItemSizes[0] || localThreads[0] > maxWorkGroupSize) {
|
/*if (globalThreads[0] > maxWorkItemSizes[0] || localThreads[0] > maxWorkGroupSize) {
|
||||||
printf("Unsupported: Device does not support requested number of work items.");
|
printf("Unsupported: Device does not support requested number of work items.");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}*/
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -752,9 +752,9 @@ int run_GEStep1A_kernel(cl_float * AI, int i, int n2, int lda2) {
|
||||||
size_t localThreads[1]; //1 matrixSize
|
size_t localThreads[1]; //1 matrixSize
|
||||||
cl_event events[2];
|
cl_event events[2];
|
||||||
|
|
||||||
/*if (check_device_capability(globalThreads,localThreads) == 1) {
|
if (check_device_capability(globalThreads,localThreads) == 1) {
|
||||||
return 1;
|
return 1;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* the input array to the kernel. This array will eventually be modified
|
* the input array to the kernel. This array will eventually be modified
|
||||||
|
@ -853,9 +853,9 @@ int run_GEStep2_kernel(cl_float * AI, cl_float diag, int i, int n2, int lda2) {
|
||||||
size_t localThreads[1]; //1 matrixSize
|
size_t localThreads[1]; //1 matrixSize
|
||||||
cl_event events[2];
|
cl_event events[2];
|
||||||
|
|
||||||
/*if (check_device_capability(globalThreads,localThreads) == 1) {
|
if (check_device_capability(globalThreads,localThreads) == 1) {
|
||||||
return 1;
|
return 1;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* the input array to the kernel. This array will eventually be modified
|
* the input array to the kernel. This array will eventually be modified
|
||||||
|
@ -962,9 +962,9 @@ int run_GEStep3_kernel(cl_float * AI, int i, int n2, int lda2) {
|
||||||
size_t localThreads[1]; //1 matrixSize
|
size_t localThreads[1]; //1 matrixSize
|
||||||
cl_event events[2];
|
cl_event events[2];
|
||||||
|
|
||||||
/*if (check_device_capability(globalThreads,localThreads) == 1) {
|
if (check_device_capability(globalThreads,localThreads) == 1) {
|
||||||
return 1;
|
return 1;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The input array to the kernel. This array will eventually be modified
|
* The input array to the kernel. This array will eventually be modified
|
||||||
|
|
Loading…
Reference in New Issue