Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#6624 closed defect (fixed)

CL_INVALID_VALUE errors when creating MBTiles file

Reported by: kthujvu Owned by: warmerdam
Priority: normal Milestone: 2.1.3
Component: default Version: unspecified
Severity: normal Keywords: gdal_translate, mbtiles, opencl, gdalwarp
Cc:

Description

Trying to create a MBTiles file from a GeoTIFF gave me lots of errors:

$ gdal_translate -of MBTiles -co TILE_FORMAT=JPEG DGM1_2x2KM_XYZ.hillshade.tif DGM1_2x2KM_XYZ.hillshade.mbtiles
Input file size is 39925, 38448
ERROR 1: Error at file gdalwarpkernel_opencl.c line 322: CL_INVALID_VALUE
ERROR 1: Error at file gdalwarpkernel_opencl.c line 430: CL_INVALID_VALUE
ERROR 1: Error at file gdalwarpkernel_opencl.c line 2078: CL_INVALID_VALUE
0ERROR 1: Error at file gdalwarpkernel_opencl.c line 322: CL_INVALID_VALUE
ERROR 1: Error at file gdalwarpkernel_opencl.c line 430: CL_INVALID_VALUE
ERROR 1: Error at file gdalwarpkernel_opencl.c line 2078: CL_INVALID_VALUE
ERROR 1: Error at file gdalwarpkernel_opencl.c line 322: CL_INVALID_VALUE
ERROR 1: Error at file gdalwarpkernel_opencl.c line 430: CL_INVALID_VALUE
ERROR 1: Error at file gdalwarpkernel_opencl.c line 2078: CL_INVALID_VALUE
(...)
More than 1000 errors or warnings have been reported. No more will be reported from now.
..100 - done.

The resulting MBTiles file seems fine though, at least it works well in QGIS and using gdaladdo on it succeeds without any problems.

SVN build from 10th Aug 2016. Archlinux with nvidia drivers.

Change History (4)

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: newclosed

In 36097:

OpenCL: do not use CL_MEM_COPY_HOST_PTR flag as it is forbidden by the opencl spec for clGetSupportedImageFormats() use case (https://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clCreateBuffer.html). Fix issues with nvidia opencl (fixes #6624)

comment:2 by Even Rouault, 7 years ago

In 36098:

OpenCL: do not use CL_MEM_COPY_HOST_PTR flag as it is forbidden by the opencl spec for clGetSupportedImageFormats() use case (​https://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clCreateBuffer.html). Fix issues with nvidia opencl (fixes #6624)

comment:3 by Even Rouault, 7 years ago

Milestone: 2.1.3

comment:4 by Even Rouault, 7 years ago

In 36099:

OpenCL: do not use CL_MEM_COPY_HOST_PTR flag as it is forbidden by the opencl spec for clGetSupportedImageFormats() use case (https://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clCreateBuffer.html). Fix issues with nvidia opencl (fixes #6624)

Note: See TracTickets for help on using tickets.