[polly] r302423 - [Polly][GPUJIT] Fixed OpenCL 2.0 min requirement for Error codes
Siddharth Bhat via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 07:10:37 PDT 2017
Author: bollu
Date: Mon May 8 09:10:37 2017
New Revision: 302423
URL: http://llvm.org/viewvc/llvm-project?rev=302423&view=rev
Log:
[Polly][GPUJIT] Fixed OpenCL 2.0 min requirement for Error codes
Summary: Removed OpenCL error code identifiers introduced in version 2.0.
Reviewers: grosser, bollu
Reviewed By: bollu
Subscribers: yaxunl, Anastasia, pollydev, llvm-commits
Tags: #polly
Differential Revision: https://reviews.llvm.org/D32962
Modified:
polly/trunk/tools/GPURuntime/GPUJIT.c
Modified: polly/trunk/tools/GPURuntime/GPUJIT.c
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/tools/GPURuntime/GPUJIT.c?rev=302423&r1=302422&r2=302423&view=diff
==============================================================================
--- polly/trunk/tools/GPURuntime/GPUJIT.c (original)
+++ polly/trunk/tools/GPURuntime/GPUJIT.c Mon May 8 09:10:37 2017
@@ -859,10 +859,10 @@ static void printOpenCLError(int Error)
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;
More information about the llvm-commits
mailing list