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

This commit is contained in:
Tuan Le 2010-07-16 22:36:57 +00:00
parent 4f488eb55b
commit b351c2225f
1 changed files with 8 additions and 8 deletions

View File

@ -733,10 +733,10 @@ int check_device_capability(size_t *globalThreads, size_t *localThreads) {
globalThreads[0] = width*height; // # of threads associated with global 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.");
return 1;
}
}*/
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
cl_event events[2];
/*if (check_device_capability(globalThreads,localThreads) == 1) {
if (check_device_capability(globalThreads,localThreads) == 1) {
return 1;
}*/
}
/*
* 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
cl_event events[2];
/*if (check_device_capability(globalThreads,localThreads) == 1) {
if (check_device_capability(globalThreads,localThreads) == 1) {
return 1;
}*/
}
/*
* 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
cl_event events[2];
/*if (check_device_capability(globalThreads,localThreads) == 1) {
if (check_device_capability(globalThreads,localThreads) == 1) {
return 1;
}*/
}
/*
* The input array to the kernel. This array will eventually be modified