Opened 10 years ago

Closed 10 years ago

#5518 closed defect (fixed)

gdalwarpkernel_opencl.c: unused variable causes CL_BUILD_PROGRAM_FAILURE

Reported by: granatn Owned by: warmerdam
Priority: normal Milestone: 1.11.1
Component: default Version: 1.11.0
Severity: normal Keywords: gdalwarp opencl mac
Cc:

Description

I compiled gdal with OpenCL-support and ECW-support (provided by ERDASEcwJpeg2000SDK5.1.1). When using gdalwarp, I get the following error:

0ERROR 1: Error: Failed to build program executable!
Build Log:
<program source>:253:5: error: unused variable 'i'
int i;
    ^

ERROR 1: Error at file gdalwarpkernel_opencl.c line 2326: CL_BUILD_PROGRAM_FAILURE
ERROR 1: OpenCL routines reported failure (-11) on line 3250.

My system:

MacPro (late 2013)
Dual AMD FirePro D300 2048 MB
OS X 10.9.3

The attached patch solved this problem for me.

Attachments (1)

gdalwarpkernel_opencl.c.patch (410 bytes ) - added by granatn 10 years ago.

Download all attachments as: .zip

Change History (2)

by granatn, 10 years ago

comment:1 by Even Rouault, 10 years ago

Milestone: 1.11.1
Resolution: fixed
Status: newclosed

trunk r27454, branches/1.11 r27455 "OpenCL warper: remove unused variable in bilinear resampling that can cause compilation error (#5518, patch by granatn)"

Note: See TracTickets for help on using tickets.