OpenCL + OS X

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
centesimiae
Posts: 18
Joined: 2014-03-14T10:10:54-07:00
Authentication code: 6789

OpenCL + OS X

Post by centesimiae »

I've compiled from source on 5 Macs now with limited success. As near as I can tell the Macs with Intel GPU and the newest Mac Pro with AMD GPU are broken. Compiled from source using compiler at hpc.sourceforge.net for OpenMP support. Compiles fine, but seem to fail at the same place:

line 899: in opencl.c

Results:

Mac Pro - 10.8 - ATI GPU - OpenCL 1.2 - Success
MacBook Pro - 10.9 - NVidia GPU - OpenCL 1.0 - Success
2 Mac minis - 10.8 and 10.9 - Intel GPU - OpenCL 1.2 - Failed
Mac Pro - 10.9 - AMD Fire PRO GPU - OpenCL 1.2 - Failed

Is there a workaround?
jgradvall
Posts: 1
Joined: 2014-11-24T14:28:31-07:00
Authentication code: 6789

Re: OpenCL + OS X

Post by jgradvall »

I have the same problem.
Installed the ImageMagick 6.8.9-9 pkg from CactusLab and run into the below errors when I try to convert applying clipping paths.

The command:
/opt/ImageMagick/bin/convert myImageWithClippingPath.jpg -flatten -alpha transparent -clip -alpha opaque -resample 72 -resize 60x70 -background white -gravity center -extent 60x70 -unsharp 0.5x0.5+1.4+0.0 -quality 90 -strip myConvertedImage.jpg

The error:
convert: clBuildProgram failed. (-11) @ warning/opencl.c/CompileOpenCLKernels/898.
convert: clCreateCommandQueue failed. (0) @ warning/opencl.c/InitOpenCLEnvInternal/1211.
convert: clBuildProgram failed. (-11) @ warning/opencl.c/CompileOpenCLKernels/898.
convert: clCreateCommandQueue failed. (0) @ warning/opencl.c/InitOpenCLEnvInternal/1211.
convert: clBuildProgram failed. (-11) @ warning/opencl.c/CompileOpenCLKernels/898.
convert: clCreateCommandQueue failed. (0) @ warning/opencl.c/InitOpenCLEnvInternal/1211.
convert: clBuildProgram failed. (-11) @ warning/opencl.c/CompileOpenCLKernels/898.
convert: clCreateCommandQueue failed. (0) @ warning/opencl.c/InitOpenCLEnvInternal/1211.
convert: clBuildProgram failed. (-11) @ warning/opencl.c/CompileOpenCLKernels/898.
convert: clCreateCommandQueue failed. (0) @ warning/opencl.c/InitOpenCLEnvInternal/1211.

The same command works fine on a Macbook Air 10.10, but not on a Mac Pro 10.9.5 with AMD Fire PRO GPU.

Any ideas very welcome!
ajay273
Posts: 2
Joined: 2015-06-03T04:21:28-07:00
Authentication code: 6789

Re: OpenCL + OS X

Post by ajay273 »

Hi, Can any one please provide some solution on above issue. Its urgent..else can you suggest what to do ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: OpenCL + OS X

Post by magick »

Does ImageMagick 6.9.1-4,. the current release fail for you? If so, disable OpenCL support for now until we can investigate:
  • cd ImageMagick-6.9.1-4
    ./configure --disable-opencl
    make
    make install
We have an update to the OpenCL code in ImageMagick scheduled within the next week. You could download ImageMagick 6.9.1-5 Beta to test next week.
ajay273
Posts: 2
Joined: 2015-06-03T04:21:28-07:00
Authentication code: 6789

Re: OpenCL + OS X

Post by ajay273 »

Thanks magick for your suggestion. It really works.
Post Reply