Page 1 of 1

Choose between opencl and openmp for convert command ?

Posted: 2012-10-27T03:31:43-07:00
by rhordern
Hello,

I've just set up a new server with an Intel Ivy bridge CPU and have installed Intel's drivers to give me OpenCL support.

#identify -version
Version: ImageMagick 6.7.8-8 2012-10-27 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP OpenCL

For benchmarking purposes to determine if its best to use OpenMP or OpenCL I would like to know if there's a way to quickly switch between the two so I can quickly test different commands with both of them. I've looked through the options for the convert command and didn't find a way to deactivate OpenCL on a command basis.

Do I have to recompile ImageMagick to switch between OpenMP and OpenCL or is there an easier way to do my benchmarks ?

Thanks

Richard.

Re: Choose between opencl and openmp for convert command ?

Posted: 2012-10-27T10:42:29-07:00
by fmw42
I am not an expert on this, but I think there may be only a few commands that use OpenCL (convol for example). I think your best bet is to use OpenMP. But on some Linux systems, it may not work right and have to be disabled.

As far as I know you have to recompile each time to enable or disable either. But best to hear back from one of the IM developers.

There are ways to have multiple versions on your system -- see viewtopic.php?f=1&t=16602#p60978