[Bug 268779] graphics/openpgl: fix build with OpenMP (-TBB)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Jan 2023 07:53:24 UTC

            Bug ID: 268779
           Summary: graphics/openpgl: fix build with OpenMP (-TBB)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mazhe@alkumuna.eu
                CC: FreeBSD@ShaneWare.Biz
                CC: FreeBSD@ShaneWare.Biz
             Flags: maintainer-feedback?(FreeBSD@ShaneWare.Biz)

Created attachment 239297
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239297&action=edit
Patch for the port directory.


I have been issues building graphics/openpgl with the OpenMP multithreading
backend rather than TBB. It's not much :

- In openpgl/spatial/kdtree/KDTreeBuilder.h, updateTreeNode() calls are missing
their sample argument in OpenMP version (not in TBB), just add it

- In openpgl/spatial/KNN.h, a #pragma parallel for try to set the number of
cores from an inexistant variable, the TBB version do not set the number of
cores: remove the parameters.

The patches are in #ifdef-ed parts of the code and can be applied regardless of
the option selected. I will aslo add a poudriere build log for QA.


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