Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Add OpenMP support to ImageMagick. #40129

Closed
wants to merge 1 commit into from
Closed

Add OpenMP support to ImageMagick. #40129

wants to merge 1 commit into from

Conversation

adah1972
Copy link
Contributor

OpenMP support increases ImageMagick's performance greatly. This patch enables OpenMP when the compiler is GCC. When the compiler is Clang, or when --without-openmp is specified on the command line, OpenMP is disabled.

@@ -48,6 +49,8 @@ class Imagemagick < Formula
depends_on "fftw" => :optional
depends_on "pango" => :optional

needs :openmp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry missed this. But in your case, it should be needs :openmp if build.with? "openmp"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I make --with- or --without-openmp the default?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since, clang doesn't support openmp yet. Let's disable openmp as default.

It will require an OpenMP-enabled compiler then..
@adah1972
Copy link
Contributor Author

OK, check again.

@MikeMcQuaid
Copy link
Member

Thanks for your contribution to Homebrew! Without people like you submitting PRs we couldn't run this project. You rock!

For future reference the preferred commit message format is imagemagick: add openmp option..

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants