Page 1 of 1

6.8.7-7 throws “clCreateBuffer failed” when using convert

Posted: 2013-11-28T21:14:20-07:00
by dirk123
convert outputs the following message every time when resizing images.

Code: Select all

convert: clCreateBuffer failed. . @ warning/accelerate.c/ComputeResizeImage/2823.
convert test.jpg test.png works fine, but when resizing like convert -resize 100x test.jpg test-100.jpg the message shown above appears. The action itself (e.g. resizing) works properly: The image gets resized. convert just returns said error message in addition.

Additional info Steps to reproduce
  • install imagemagick 6.8.7-7
  • perform convert -geometry 100x test.jpg test-100.jpg
Version informations

Code: Select all

$ convert --version
Version: ImageMagick 6.8.7-7 Q16 x86_64 2013-11-25 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC HDRI Modules OpenCL OpenMP
Delegates: bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib

$ uname -rms
Linux 3.12.1-3-ARCH x86_64


Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Posted: 2013-11-30T12:16:06-07:00
by dlemstra
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.7-9 Beta, available by sometime tomorrow. Thanks.

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Posted: 2013-11-30T16:44:24-07:00
by dirk123
Sounds great! Thanks for the quick response!

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Posted: 2013-12-03T16:12:48-07:00
by pronaldzito
I downloaded ImageMagick-6.8.7-9.tar.bz2, configured and built the software, but I am still getting the error:
lt-convert: clCreateBuffer failed. . @ warning/accelerate.c/ComputeResizeImage/2816.

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Posted: 2013-12-03T17:54:24-07:00
by magick
It means your GPU does not have enough memory so it reverts to the host CPU. You should get correct results despite the warning. We're looking toward making the warning silent if the GPU does not have enough memory.

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Posted: 2013-12-04T08:13:32-07:00
by pronaldzito
Is the warning new to version 6.8.7?
We had previously build 6.8.6-9 and see no warning - now I wonder if the GPU is actually being used.

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Posted: 2013-12-04T08:43:45-07:00
by magick
Expanded GPU support is a recent contribution, just a few weeks old. It works well but does require a few tweaks.

Re: 6.8.7-7 throws “clCreateBuffer failed” when using conver

Posted: 2013-12-04T09:11:06-07:00
by dlemstra
We noticed another bug in detecting the device that will be used. We will have a patch in ImageMagick 6.8.7-9 Beta available by sometime tomorrow.