Re: ImageMagick Accelerate Using OpenCL
Posted: 2013-05-23T08:59:26-07:00
We're not inclined to support two codesets for each algorithm in the main development trunk, one for CPU's and one for GPU's. Instead we're looking for inline acceleration. OpenMP 4, for example, supports SIMD pragmas, something we're investigating now. Another problem is that ImageMagick 7 will be released in Beta soon. It includes support for variable pixel channels (see http://www.imagemagick.org/script/porting.php) which would mean another set of OpenCL codesets to support. That's 4 codesets for each image filter (v6 & v7, CPU & GPU). And as mentioned, OpenCL ports of the algorithms are available @ http://www.imagemagick.org/download/contrib/. It does not fully match the capabilities of the CPU version-- for example, the virtual pixel method setting is ignored. Its not in the main trunk but none-the-less they do work on GPUs. We might be inclined to support a few image filters in OpenCL in the main trunk. Convolution is supported now. Distortion is probably a candidate.