From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 15 08:43:14 2024 Received: (at submit) by debbugs.gnu.org; 15 Oct 2024 12:43:14 +0000 Received: from localhost ([127.0.0.1]:54420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gtO-0000b9-AU for submit@debbugs.gnu.org; Tue, 15 Oct 2024 08:43:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:59412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gtL-0000b0-Qo for submit@debbugs.gnu.org; Tue, 15 Oct 2024 08:43:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0gt3-0000zE-AS for guix-patches@gnu.org; Tue, 15 Oct 2024 08:42:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0gt1-0004uN-0J; Tue, 15 Oct 2024 08:42:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=DLBjXj4Wmo+twXXKMY/7gqmJ+/8qo5XS68dYOx5Fzr4=; b=pgVIps2YWuI31L 2ayYYtusqRwCL//VpcUavSUiUmfGxNLiGo1DHFe6VN/WEG03iY+zACaUqHYW2IqPVuhvvyF34clMe ro3A3Omqe0J+RiVGfXRMOg6TEdNyzjoqZGyKPj0CXOnTi3oVRMLH6PVR4aufUJXyL4NtzGW+sNRR5 M8oL4kRZxG7mFwixoE+GGa33myBFi0t9iCcIYG8B6BOfjZupaWOxx6QX/B9c7I7OwjHMMLvY15c+W zcv38WTzPcw2/hggKYh8rWjSOybln80/4h27Giqg/xx/bGxC/fw+n6nKfyjXbSOXIvRT4OwnHP4h1 f2Jq5Fx1uaC9+G1OBAow==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH 0/2] Reduce size of openmpi@5 closure Date: Tue, 15 Oct 2024 14:42:39 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , romain.garbage@inria.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! This patch set reduces the closure size of openmpi@5 from 605 MiB to 249 MiB. It also removes potentially misleading argument inheritance from openmpi@4 to openmpi@5. Thoughts? Ludo'. Ludovic Courtès (2): gnu: openmpi@5: Remove reference to GCC and other build tools. gnu: prrte: Remove reference to GCC and other build tools. gnu/packages/mpi.scm | 59 ++++++++++++++++++++++----------------- gnu/packages/parallel.scm | 22 +++++++++++++-- 2 files changed, 53 insertions(+), 28 deletions(-) base-commit: 6757bfdfc0b22a1e23a3d33566155550182244fc -- 2.46.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 15 08:45:41 2024 Received: (at 73818) by debbugs.gnu.org; 15 Oct 2024 12:45:41 +0000 Received: from localhost ([127.0.0.1]:54432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gvk-0000m2-Rh for submit@debbugs.gnu.org; Tue, 15 Oct 2024 08:45:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gvi-0000le-SC for 73818@debbugs.gnu.org; Tue, 15 Oct 2024 08:45:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0gvL-0005Jz-1O; Tue, 15 Oct 2024 08:45:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=vuKQMDT0JwDu2bJLVucZ4xls5Ts4vK0hEArJTq2UVwE=; b=bMcGpMhrVTfUQy0C1z69 EwywVMMqWesGtqJUaNQU+L9y3AP2FdJwSbWYyi5Q5/Bitp/73VsChhaE3kX4iM80MIzCAj5ZHNUMx xN8H2Bcs4CLtDd9pM6LwL73qqSDfJ7x3frB1fDgHMxc3ujykYmwPBOrSHQfmHTUJ9JVY4wEhm3ZWW sDyED4FfdF7PxCXL6R1Xy4kuVZ4gqVO0yVWm7WQqSUJwtO+rn1sRAW9YtU3jC13fJM7kdYbOKBqgv B+bDEQYKi16Vxw6AZwkcvIV1qs0FgGPEo3f/lBq/LcEJXs+qrN7CtUPZXkCs+03kH7TX8eD8ejRjl 4GIbSO/DcxALdA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 73818@debbugs.gnu.org Subject: [PATCH 1/2] gnu: openmpi@5: Remove reference to GCC and other build tools. Date: Tue, 15 Oct 2024 14:45:03 +0200 Message-ID: <40bb05332e8a6af8e964b57e1648ab4c38b8874f.1728996088.git.ludo@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73818 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) From: Ludovic Courtès This removes GCC from the direct references of openmpi@5. * gnu/packages/mpi.scm (openmpi-5)[arguments]: Replace arguments entirely instead of using ‘substitute-keyword-arguments’. Reintroduce ‘remove-absolute’ phase. Remove ‘find-opensm-headers’ and ‘remove-logs’ phases, which are no longer needed. Change-Id: Ia3b25230488ca13310cd5bb2ae45f6990e906fa5 --- gnu/packages/mpi.scm | 59 +++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 75cfd4af66..6e1f972eb8 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -339,37 +339,46 @@ (define-public openmpi-5 (outputs '("out" "debug")) (arguments - (substitute-keyword-arguments (package-arguments openmpi) - ((#:configure-flags _) - #~(list "--enable-mpi-ext=affinity" ;cr doesn't work - "--with-sge" + (list #:configure-flags + #~(list "--enable-mpi-ext=affinity" ;cr doesn't work + "--with-sge" - #$@(if (package? (this-package-input "valgrind")) - #~("--enable-memchecker" - "--with-valgrind") - #~("--without-valgrind")) + #$@(if (package? (this-package-input "valgrind")) + #~("--enable-memchecker" + "--with-valgrind") + #~("--without-valgrind")) - "--with-hwloc=external" - "--with-libevent" + "--with-hwloc=external" + "--with-libevent" - ;; This replaces --enable-mpirun-prefix-by-default wich is deprecated - ;; since 5.x. - "--enable-prte-prefix-by-default" + ;; This replaces --enable-mpirun-prefix-by-default wich is deprecated + ;; since 5.x. + "--enable-prte-prefix-by-default" - ;; Enable support for the 'Process Management Interface for Exascale' - ;; (PMIx) used e.g. by Slurm for the management communication and - ;; coordination of MPI processes. - (string-append "--with-pmix=" #$(this-package-input "openpmix")) - (string-append "--with-prrte=" #$(this-package-input "prrte")) + ;; Enable support for the 'Process Management Interface for Exascale' + ;; (PMIx) used e.g. by Slurm for the management communication and + ;; coordination of MPI processes. + (string-append "--with-pmix=" #$(this-package-input "openpmix")) + (string-append "--with-prrte=" #$(this-package-input "prrte")) - ;; Since 5.x, Infiniband support is provided by ucx. - ;; See https://docs.open-mpi.org/en/main/release-notes/networks.html#miscellaneous-network-notes - (string-append "--with-ucx=" #$(this-package-input "ucx")))) + ;; Since 5.x, Infiniband support is provided by ucx. + ;; See https://docs.open-mpi.org/en/main/release-notes/networks.html#miscellaneous-network-notes + (string-append "--with-ucx=" #$(this-package-input "ucx"))) - ((#:phases phases) - #~(modify-phases #$phases - (delete 'remove-absolute) - (delete 'scrub-timestamps))))))) + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'remove-absolute + (lambda _ + ;; Remove compiler absolute file names (OPAL_FC_ABSOLUTE + ;; etc.) to reduce the closure size. See + ;; + ;; and + ;; . + (substitute* '("oshmem/tools/oshmem_info/param.c" + "ompi/tools/ompi_info/param.c") + (("_ABSOLUTE") ""))))) + + #:disallowed-references (list (canonical-package gcc)))))) (define-public openmpi-c++ (package/inherit openmpi -- 2.46.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 15 08:45:43 2024 Received: (at 73818) by debbugs.gnu.org; 15 Oct 2024 12:45:43 +0000 Received: from localhost ([127.0.0.1]:54434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gvn-0000mC-Fc for submit@debbugs.gnu.org; Tue, 15 Oct 2024 08:45:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0gvj-0000lg-Qm for 73818@debbugs.gnu.org; Tue, 15 Oct 2024 08:45:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0gvM-0005KO-93; Tue, 15 Oct 2024 08:45:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=/igAzYSuHEBcG4pdFtspwGTDAEzyx3fgHbeLjQJ6zyI=; b=BLgGZjBUAUSTUKhml+R8 SpiPx3/Iiz/p+qX9Lpqs/TpOOZY5xgOAGXK5b/GRIEv1aF1qPTvzV40IXQaZO0KYRciikjDk7Oxhm oLb0XjAvb+9RUFSPDbgoVPMwrN5HgLh98CX681BE41X6xUtJdCBIh5lXAFjc+aECfchNC77+pYRRx kOerIVEENKeNPjtl1hCaq/+gEzXctJd2LoBhjbZUH9OfErxQzdCXJ8043ZISITPqA0fHxncr73O19 +5cvlbLAsOqVNp4S2ug8ZUN5QXj7vNHSKNLHl6qAe7x2No1E02IcTYRtKFg5+j8WprDnIxPfSral0 gILmVxCFN8hhVA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: 73818@debbugs.gnu.org Subject: [PATCH 2/2] gnu: prrte: Remove reference to GCC and other build tools. Date: Tue, 15 Oct 2024 14:45:04 +0200 Message-ID: <3eed0df2217e206b04619ded2debc38213e312ac.1728996088.git.ludo@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73818 Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) From: Ludovic Courtès This reduces the closure of ‘prrte’ from 305 MiB to 99 MiB. * gnu/packages/parallel.scm (prrte)[arguments]: Add #:phases. Change-Id: Idc26cf5899dd5fa8378535fc8530dbdb3e20608d --- gnu/packages/parallel.scm | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index fc96136065..186aebad45 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -711,9 +711,25 @@ (define-public prrte "0wiy0vk37v4db1jgxza8bci0cczcvj34dalzsrlz05dk45zb7dl3")))) (build-system gnu-build-system) (arguments - (list #:configure-flags #~(list (string-append "--with-hwloc=" - (assoc-ref %build-inputs "hwloc")) - (string-append "--with-pmix=" #$(this-package-input "openpmix"))))) + (list #:configure-flags + #~(list (string-append "--with-hwloc=" + (assoc-ref %build-inputs "hwloc")) + (string-append "--with-pmix=" + #$(this-package-input "openpmix"))) + + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-absolute-references + (lambda _ + ;; Remove references to GCC, the shell, etc. (shown by + ;; 'prte_info') to reduce the closure size. + (substitute* "src/tools/prte_info/param.c" + (("_ABSOLUTE") + "") + (("PRTE_CONFIGURE_CLI") + "\"[elided to reduce closure]\""))))) + + #:disallowed-references (list (canonical-package gcc)))) (inputs (list libevent `(,hwloc "lib") openpmix)) -- 2.46.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 25 06:38:58 2024 Received: (at 73818-done) by debbugs.gnu.org; 25 Oct 2024 10:38:58 +0000 Received: from localhost ([127.0.0.1]:37486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Hib-0004kV-NX for submit@debbugs.gnu.org; Fri, 25 Oct 2024 06:38:58 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:9987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4HiZ-0004kG-Kg for 73818-done@debbugs.gnu.org; Fri, 25 Oct 2024 06:38:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=u6NKkNCj91C2DYEoG5m51E20OJ+VwpU7J9QBUJzToio=; b=GTf1RRN8rwWTqLbNJnVivzJduvn2SpE3d30Nw96rcsF15S7osckJ9vRk ytOwzJht/dI2c2XG9VBpELk3j3hgKyu17zJL9OGhOScrCcjsD/HnbdyPr xHxd6o5ZktKD7qKPWGN+e0kW7Typ7cqaVl+WC1K6BXxZ2daAmeDXfr1GS 4=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.11,231,1725314400"; d="scan'208";a="190718986" Received: from unknown (HELO ribbon) ([193.50.110.122]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 12:38:17 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 73818-done@debbugs.gnu.org Subject: Re: [bug#73818] [PATCH 0/2] Reduce size of openmpi@5 closure In-Reply-To: ("Ludovic =?utf-8?Q?Court?= =?utf-8?Q?=C3=A8s=22's?= message of "Tue, 15 Oct 2024 14:42:39 +0200") References: Date: Fri, 25 Oct 2024 12:38:16 +0200 Message-ID: <87wmhw1n8n.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73818-done Cc: romain.garbage@inria.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s skribis: > This patch set reduces the closure size of openmpi@5 from > 605 MiB to 249 MiB. It also removes potentially misleading > argument inheritance from openmpi@4 to openmpi@5. Pushed: 38af41c4af * gnu: prrte: Remove reference to GCC and other build tools. 30e469cc9c * gnu: openmpi@5: Remove reference to GCC and other build tool= s. Ludo'. From unknown Thu Aug 14 21:49:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Nov 2024 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator