[Bug 283636] Mk/bsd.port.mk: Limit number of OpenMP threads

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Dec 2024 20:25:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283636

            Bug ID: 283636
           Summary: Mk/bsd.port.mk: Limit number of OpenMP threads
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: tijl@FreeBSD.org
                CC: ports-bugs@FreeBSD.org

Created attachment 256165
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256165&action=edit
patch

By default OpenMP programs can use as many threads as there are cores.  Add
OMP_THREAD_LIMIT=${MAKE_JOBS_NUMBER} to WRK_ENV to limit this.  An example is
"make test" in x11/pixman (with update from bug 283530).

-- 
You are receiving this mail because:
You are on the CC list for the bug.