Error with convert and OpenCL bindings

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
drewbs
Posts: 1
Joined: 2014-02-24T14:50:05-07:00
Authentication code: 6789

Error with convert and OpenCL bindings

Post 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.
pronaldzito
Posts: 12
Joined: 2013-12-03T15:56:51-07:00
Authentication code: 6789

Re: Error with convert and OpenCL bindings

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Error with convert and OpenCL bindings

Post 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.
Post Reply