File: OpenCL_common.cpp.patch

package info (click to toggle)
pocl 7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 29,768 kB
  • sloc: lisp: 151,669; ansic: 135,425; cpp: 65,801; python: 1,846; sh: 1,084; ruby: 255; pascal: 231; tcl: 180; makefile: 174; asm: 81; java: 72; xml: 49
file content (11 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
--- OpenCL_common.cpp	2013-02-05 16:51:53.458366127 +0200
+++ parboil/benchmarks/bfs/src/opencl_base/OpenCL_common.cpp	2013-02-05 16:54:02.674616150 +0200
@@ -40,7 +40,7 @@
       if (reqDeviceType != NULL) {
         OCL_SIMPLE_ERRCK_RETVAL( clGetDeviceInfo(clDevice, CL_DEVICE_TYPE, sizeof(cl_device_type), &clDeviceType, NULL));
         if (*reqDeviceType != CL_DEVICE_TYPE_ALL) {
-          if (*reqDeviceType != clDeviceType) {
+          if (*reqDeviceType & clDeviceType == 0) {
             canSatisfy = false;
           }
         }