Windows-Binaries with OpenCL-Support?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
pakko
Posts: 2
Joined: 2011-05-10T13:09:09-07:00
Authentication code: 8675308

Windows-Binaries with OpenCL-Support?

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Windows-Binaries with OpenCL-Support?

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows-Binaries with OpenCL-Support?

Post 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
pakko
Posts: 2
Joined: 2011-05-10T13:09:09-07:00
Authentication code: 8675308

Re: Windows-Binaries with OpenCL-Support?

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