Windows portable build doesn't have openMP enabled?

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
potatos
Posts: 2
Joined: 2015-11-19T14:19:19-07:00
Authentication code: 1151

Windows portable build doesn't have openMP enabled?

Post by potatos »

Hey guys,

I am trying to deploy the windows portable build of IM for use in some apps, but when I run convert.exe -version I get:

Code: Select all

Version: ImageMagick 6.9.2-6 Q16 x64 2015-11-14 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC
Delegates (built-in): bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib

When I install IM to program files and run convert.exe -version it shows openMP installed:

Code: Select all

Version: ImageMagick 6.9.2-6 Q16 x64 2015-11-14 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib

Additionally, running benchmarks confirms that the OpenMP version runs about four times faster than the static version.

Is this the expected behavior? Is there a way to get OpenMP enabled on the windows portable version? I don't have access to visual studio to compile it myself.


Thanks
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Windows portable build doesn't have openMP enabled?

Post by dlemstra »

We don't enable OpenMP in the portable build because we statistically link with the Visual Studio C++ redistributable. And this doesn't work if we enable OpenMP. And ImageMagick can be compiled with the Visual Studio 2015 community edition which is freely available. But you will need to ship the C++ redistributable dll's or make sure they are installed on the target machine.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
potatos
Posts: 2
Joined: 2015-11-19T14:19:19-07:00
Authentication code: 1151

Re: Windows portable build doesn't have openMP enabled?

Post by potatos »

Thanks! I managed to compile a portable static version with openMP. For whatever reason it's not quite as fast as the installed binary version from your site, but it's still faster than the non open-MP portable version. I really barely know what I'm doing compiler-wise so it may just be some optimizations or something. Either way, things are slightly faster now. I'll take it. Thanks for the help.
Post Reply