diff --git a/samples/nvopencl/nvopencl.cpp b/samples/nvopencl/nvopencl.cpp index caba2c305f..c881c738aa 100644 --- a/samples/nvopencl/nvopencl.cpp +++ b/samples/nvopencl/nvopencl.cpp @@ -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