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.
Windows-Binaries with OpenCL-Support?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Windows-Binaries with OpenCL-Support?
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.
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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Windows-Binaries with OpenCL-Support?
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
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?
Here is a quote from the main-page:
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.
Source: http://www.imagemagick.org/script/architecture.phpHeterogeneous 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
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.