File: OpenCL_common.cpp.patch

package info (click to toggle)
pocl 6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,320 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 175; java: 72; xml: 49
file content (11 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (7)
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;
           }
         }