From owner-freebsd-ports-bugs@freebsd.org Mon Dec 30 22:04:34 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 035C21EB892 for ; Mon, 30 Dec 2019 22:04:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47ms0d6NNbz4Xhk for ; Mon, 30 Dec 2019 22:04:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id DB0951EB88F; Mon, 30 Dec 2019 22:04:33 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DACBC1EB88D for ; Mon, 30 Dec 2019 22:04:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47ms0d5Xhzz4Xhj for ; Mon, 30 Dec 2019 22:04:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B9A078681 for ; Mon, 30 Dec 2019 22:04:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xBUM4Xs2052213 for ; Mon, 30 Dec 2019 22:04:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xBUM4XvD052212 for ports-bugs@FreeBSD.org; Mon, 30 Dec 2019 22:04:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 242995] [patch] cad/calculix-ccx: Enable multithreading with spooles Date: Mon, 30 Dec 2019 22:04:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rsmith@xs4all.nl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pfg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 22:04:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242995 Bug ID: 242995 Summary: [patch] cad/calculix-ccx: Enable multithreading with spooles Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pfg@FreeBSD.org Reporter: rsmith@xs4all.nl Assignee: pfg@FreeBSD.org Flags: maintainer-feedback?(pfg@FreeBSD.org) Created attachment 210340 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210340&action= =3Dedit Patch to enable multithreading in ccx when using spooles. Up to now, ccx uses only one core when factoring the systems of equations u= sing the spooles solver.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 For spooles to use multiple threads, -DUSE_MT=3D1 needs to be added to CFLA= GS when building calculix-ccx. The included patch adds -DUSE_MT=3D1 to CFLAGS in the Makefile for ccx. For a system of 161448 equations, this reduces the runtime from 25.76 s to 22.54 s on a Core i7-7700 CPU. (This is with the environment variable=20 OMP_NUM_THREADS set to 4, since this CPU has 4 physical cores and I have=20 disabled hyperthreading.) Record of the tests as per the porters handbook: > make stage ... ... =3D=3D=3D> Staging for CalculiX-ccx-2.16 =3D=3D=3D> CalculiX-ccx-2.16 depends on executable: gfortran9 - found =3D=3D=3D> CalculiX-ccx-2.16 depends on executable: gcc9 - found =3D=3D=3D> Generating temporary packing list =3D=3D=3D=3D> Compressing man pages (compress-man) > make stage-qa =3D=3D=3D=3D> Running Q/A tests (stage-qa) > make package =3D=3D=3D> Building package for CalculiX-ccx-2.16 # make install =3D=3D=3D> Installing for CalculiX-ccx-2.16 =3D=3D=3D> Checking if CalculiX-ccx is already installed =3D=3D=3D> Registering installation for CalculiX-ccx-2.16 Installing CalculiX-ccx-2.16... # make deinstall =3D=3D=3D> Deinstalling for CalculiX-ccx =3D=3D=3D> Deinstalling CalculiX-ccx-2.16 Updating database digests format: 100% Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: CalculiX-ccx-2.16 Number of packages to be removed: 1 The operation will free 78 MiB. [1/1] Deinstalling CalculiX-ccx-2.16... [1/1] Deleting files for CalculiX-ccx-2.16: 100% The port builds, installs and runs fine. I've seen no significant difference in the calculated results compared to t= he current port and 2.15. Tests performed on FreeBSD 12.1-STABLE r354569 GENERIC amd64. --=20 You are receiving this mail because: You are the assignee for the bug.=