-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenMP support #29
Comments
Gmagick does not do any processing itself - it passes all image processing to GraphicsMagick If you have compiled GraphicsMagick with OpenMP enabled, probably with the --enable-openmp flag set, and with a suitable version of OpenMP installed, it should 'just work'. However.....you really ought to test it. I am not convinced OpenMP is stable either with ImageMagick or GraphicsMagick. At least for me I was seeing weird shutdown errors in PHP when OpenMP was enabled. |
As mentioned in greater details in my question on StackOverflow, I did compile GraphicsMagick with OpenMP ( |
To be clear, Gmagick doesn't really touch the threads. If you've compiled with OpenMP enabled for GraphicsMagick, then it should 'just work' for Gmagick. There is a function to set the resource limit, what happens when you call it?
not saying it will work - it should be working by default. Actually, the result of getResultLimit would be interesting as well. |
Hi, sorry I'm a bit (18 months) late. Coming back to this. I tried: $gmagick->getResourceLimit(Gmagick::RESOURCETYPE_THREADS); But I get an error:
Could this be why OpenMP is not used in Gmagick? Looking at the source code, this constant is available when |
Hi,
I've noticed that all my Gmagick code runs on a single CPU core, which is a pity on servers with 8 cores or more, given that GraphicsMagick supports OpenMP.
Is there a reason for this? Imagick leaves the choice to enable OpenMP, can we do the same for Gmagick?
The text was updated successfully, but these errors were encountered: