Page 1 of 1

Error with convert and OpenCL bindings

Posted: 2014-02-24T14:59:02-07:00
by drewbs
Running

Code: Select all

convert logo: -resize 50 -limit thread 1 -bench 10 null:
ends up in this error:

Code: Select all

convert: Error when saving the profile into a file '.' @ warning/opencl.c/autoSelectDevice/2184.
convert: Saving binary kernel failed. '.' @ warning/opencl.c/saveBinaryCLProgram/562.
The benchmark then does take place, though presumably sans OpenCL.

Here's the version info:

Code: Select all

convert -version
Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-24 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenCL OpenMP
Delegates: fontconfig freetype jng jpeg png x xml zlib
Any help is appreciated.

Re: Error with convert and OpenCL bindings

Posted: 2014-03-05T10:19:55-07:00
by pronaldzito
There is a flaw in magick/opencl.c GetOpenCLCachedFilesDirectory()
Sometime recently the path was changed from $HOME/.magick to $HOME/.config/ImageMagick
The problem is on line 2580 mkdir(path, 0777);
This will work only if $HOME/.config already exists
The code should be changed to create $HOME/.config before creating $HOME/.config/ImageMagick
You can work around this by creating $HOME/.config before running convert - it will then create ImageMagick and place the cache file within

Re: Error with convert and OpenCL bindings

Posted: 2014-03-05T15:53:06-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.8-8 Beta, available by sometime tomorrow. Thanks.