[PATCH] D32962: [Polly][GPUJIT] Fixed OpenCL 2.0 min requirement for Error codes

Philipp Schaad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 8 01:32:10 PDT 2017


PhilippSchaad updated this revision to Diff 98136.
PhilippSchaad added a comment.

Fixed wrong device queue error


https://reviews.llvm.org/D32962

Files:
  tools/GPURuntime/GPUJIT.c


Index: tools/GPURuntime/GPUJIT.c
===================================================================
--- tools/GPURuntime/GPUJIT.c
+++ tools/GPURuntime/GPUJIT.c
@@ -859,10 +859,10 @@
   case CL_INVALID_DEVICE_PARTITION_COUNT:
     fprintf(stderr, "Invalid device partition count.\n");
     break;
-  case CL_INVALID_PIPE_SIZE:
+  case -69: // OpenCL 2.0 Code for CL_INVALID_PIPE_SIZE
     fprintf(stderr, "Invalid pipe size.\n");
     break;
-  case CL_INVALID_DEVICE_QUEUE:
+  case -70: // OpenCL 2.0 Code for CL_INVALID_DEVICE_QUEUE
     fprintf(stderr, "Invalid device queue.\n");
     break;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32962.98136.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170508/074cd1ec/attachment.bin>


More information about the llvm-commits mailing list