adjust MAGICK_THREAD_LIMIT

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
crosmuller

adjust MAGICK_THREAD_LIMIT

Post by crosmuller »

Hi everyone,

How can I adjust MAGICK_THREAD_LIMIT, I know I ahve to add a line to configure.xml:

<configure name="MAGICK_THREAD_LIMIT" value="4"/>

But after that, do I have to recompile imagemagick or restart something?

I am using ImageMagick 6.3.7

Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: adjust MAGICK_THREAD_LIMIT

Post by magick »

The MAGICK_THREAD_LIMIT variable limits the number of threads if ImageMagick is build with OpenMP enabled. Check your version of ImageMagick:
  • convert -version
If OpenMP is enabled you'll get something like
By default the number of threads is equal to the number of cores of your system (dual core means 2 threads).
Post Reply