Page 1 of 1
Windows-Binaries with OpenCL-Support?
Posted: 2011-05-10T13:57:19-07:00
by pakko
Hi folks,
i read that ImageMagick has support for OpenCl (convolve function). But unfortunately i couldn´t find any windows binaries with OpenCL-Support. I checked this with the "identify -version" command, but it only returned "Features: OpenMP" in all cases. Are there really no windows binaries with enabled OpenCl or i´m doing something wrong?
PS: System is OpenCl-Compliant - already tried some other OpenCl-Apps that work fine.
Re: Windows-Binaries with OpenCL-Support?
Posted: 2011-05-10T19:34:02-07:00
by anthony
IM have convolution functions, and the older -convolve function can use GPU convolution.
HOWEVER I don't see opencl convolution usage. But I could be wrong. 'Magick' would know for certain.
Convolution becomes very tricky when alpha or edge effects become involved.
Re: Windows-Binaries with OpenCL-Support?
Posted: 2011-05-10T19:43:23-07:00
by fmw42
Anthony,
Is not the issue simply how to link IM to OpenCL, if that is possible or must one use them separately in the same script?
If I recall correctly HugoRune used OpenCL in doing his Hough-like edge extraction along with one of the IM APIs (search the archives)
see his code at various places in the thread at
viewtopic.php?f=1&t=14491&hilit=Hough
Fred
Re: Windows-Binaries with OpenCL-Support?
Posted: 2011-05-12T04:48:50-07:00
by pakko
Here is a quote from the main-page:
Heterogeneous Distributed Processing
ImageMagick includes support for heterogeneous distributed processing with the OpenCL framework. OpenCL kernels within ImageMagick permit image processing algorithms to execute across heterogeneous platforms consisting of CPUs, GPUs, and other processors. Depending on your platform, speed-ups can be an order of magnitude faster than the traditional single CPU.
First verify that your version of ImageMagick includes support for the OpenCL feature:
$magick> identify -version
Features: OpenMP OpenCL
If so, run this command to realize a significant speed-up for image convolution:
$magick> convert image.png convolve '-1, -1, -1, -1, 9, -1, -1, -1, -1' \
convolve.png
Source:
http://www.imagemagick.org/script/architecture.php
So, OpenCl-Support should be present in my opinion. But i don´t know which versions (Linux, Mac, Win, 32 or 64 bit) are compiled with OpenCL. I already tested the windows binaries from the main page and if i run the "identify -version" command on these, only OpenMP is listed, no OpenCL as Feature.