Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2021 12:07:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 252994] graphics/GraphicsMagick gcc-c++11-lib not needed for OPENMP
Message-ID:  <bug-252994-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252994

            Bug ID: 252994
           Summary: graphics/GraphicsMagick gcc-c++11-lib not needed for
                    OPENMP
           Product: Ports & Packages
           Version: Latest
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: rasmus@gal.dk
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Created attachment 221899
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D221899&action=
=3Dedit
Omit gcc-c11+11-lib dependency, thereby omitting gcc dependency

FreeBSD 12.2 - aarch64

gcc is a dependency for GraphicsMagick (recently bumped from gcc9 to gcc10)=
 if
OPENMP is chosen (default). It's a massive unneeded (AFAIK) dependency.=20

Omitting:

OPENMP_USES=3D           compiler:gcc-c++11-lib

from Makefile, makes GraphicsMagick compile and OPENMP works fine:

$ gm benchmark -stepthreads 1 -duration 10 convert \
>   -size 2048x1080 pattern:granite -operator all Noise-Gaussian 30% null:
Results: 1 threads 23 iter 8.97s user 10.083170s total 2.281 iter/s 2.564
iter/cpu 1.00 speedup 1.000 karp-flatt
Results: 2 threads 41 iter 16.70s user 10.192252s total 4.023 iter/s 2.455
iter/cpu 1.76 speedup 0.134 karp-flatt
$

Example of OPENMP taken from GM documentation:

http://www.graphicsmagick.org/OpenMP.html

I have only aarch64 machines to test on.

Patchfile included.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252994-7788>