From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iM9jDXIZkWaKGgEAqHPOHw:P1 (envelope-from ) for ; Fri, 12 Jul 2024 11:54:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iM9jDXIZkWaKGgEAqHPOHw (envelope-from ) for ; Fri, 12 Jul 2024 13:54:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=Hx1JgYgF; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720785266; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cbM8mwrO+H9LSBuYWvVfbRlbWYUyW9KXXgE9XUjVVDc=; b=ZCghYQJVlAB+sKcDTmuqWKCOafQPSxVX91o53v7tYwzo1ywAf6foircFFd27QjjIKgulpp hOSE6uV7GgCw7N6F97wR4Velj0qAzKSG2/uKM2HzbtqY355eamq872bP6KEaK9LLZ7HSnA WmfOtrGl4kIRk+KIDHJiA71lgDyO2Wwc+80kBwUOKCZp1EgRp23gKB6ohJ1URT2nckrhws s8ldNb0I01IYpvwo8Po0BdbLpk81XUDkoOKot1NihV6s3Z2dt551ewAMSw14DTY8QKeB0X 0Z0Y/9NvPMvAyQUNrNlHAIwTAalhxNU68Ej58yfijJ7oi7mcd9tBZAY5gVxtUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=Hx1JgYgF; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720785266; a=rsa-sha256; cv=none; b=L1hVKjOJJ9HyZ95fgtGWxo10s99S6K4fwrNV1rPqecY+H2g8Y3WT+OMe13ZXO2PWHF/p8p d93POJbJC8rJDP3hT+0EFtezlB7pGQiCGkU/R21FHabNEypQrN0kf5EKArLvEe3ZmCFG65 CFHO8qBEnkhhOTHL6imV1yIUtd6t9ZrkbKH7o5UgXQQcKixXtmtObYy0gs67QO5WwQ6uFI 741ynGQ0+Q+cbdLE9OMMhitTggJCOFuoO7PWv08RG68GN1eMD1sSrFzO8QA6a3G5338/Yj mGF0TvoD7CRAG5FxnaLElpZb1RLB4+vjx6gGrOIZPDWenhf/Rm5rJdBUuvQjpw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F2B85395B8 for ; Fri, 12 Jul 2024 13:54:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSEqj-00028R-Tx; Fri, 12 Jul 2024 07:54:05 -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 1sSEqi-00023v-Rs for guix-patches@gnu.org; Fri, 12 Jul 2024 07:54:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSEqi-0002gy-JR for guix-patches@gnu.org; Fri, 12 Jul 2024 07:54:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSEqi-0006pg-Oc for guix-patches@gnu.org; Fri, 12 Jul 2024 07:54:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72062] [PATCH v2 4/5] gnu: Add openmpi-5. Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Jul 2024 11:54:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72062 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72062@debbugs.gnu.org Cc: ludovic.courtes@inria.fr, Romain GARBAGE Received: via spool by 72062-submit@debbugs.gnu.org id=B72062.172078519626173 (code B ref 72062); Fri, 12 Jul 2024 11:54:04 +0000 Received: (at 72062) by debbugs.gnu.org; 12 Jul 2024 11:53:16 +0000 Received: from localhost ([127.0.0.1]:53399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSEpv-0006o4-NA for submit@debbugs.gnu.org; Fri, 12 Jul 2024 07:53:16 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:40873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSEpr-0006mT-DH for 72062@debbugs.gnu.org; Fri, 12 Jul 2024 07:53:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cbM8mwrO+H9LSBuYWvVfbRlbWYUyW9KXXgE9XUjVVDc=; b=Hx1JgYgFEsD09tNJFipypVes5Ise6dipgLJqlDbEwzaZ0/GZFMradpjU FYTLTzXdzRIBTIFhFtfDUQ7alLzx46H1XHiYjI5q1afFLpi+nazOdyAC9 8tDsCDg1RW7o8Iy5Eg+UnLPaNI+fZl1FvEsydbSagosbrF7g9b0wYx6mR Y=; X-IronPort-AV: E=Sophos;i="6.09,202,1716242400"; d="scan'208";a="175229878" Received: from 91-164-88-5.subs.proxad.net (HELO localhost.localdomain) ([91.164.88.5]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2024 13:53:09 +0200 From: Romain GARBAGE Date: Fri, 12 Jul 2024 13:47:05 +0200 Message-ID: <20240712115235.20217-5-romain.garbage@inria.fr> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240712115235.20217-1-romain.garbage@inria.fr> References: <20240712115235.20217-1-romain.garbage@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: F2B85395B8 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.50 X-Spam-Score: -4.50 X-TUID: cGqxUhbi6N1W * gnu/packages/mpi.scm (openmpi-5): New variable. Change-Id: I048692b2e928077c9cfa9fb8076ceb356251e1db --- gnu/packages/mpi.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index 6270108b16..01f07a0f7c 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice ;;; Copyright © 2018 Paul Garlick ;;; Copyright © 2019, 2021 Ricardo Wurmus +;;; Copyright © 2024 Romain Garbage ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,6 +50,7 @@ (define-module (gnu packages mpi) #:use-module (gnu packages ncurses) #:use-module (gnu packages parallel) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages valgrind) #:use-module (srfi srfi-1) #:use-module (ice-9 match)) @@ -307,6 +309,63 @@ (define-public openmpi ;; See file://LICENSE (license license:bsd-2))) +(define-public openmpi-5 + (package + (inherit openmpi) + (version "5.0.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://www.open-mpi.org/software/ompi/v" + (version-major+minor version) + "/downloads/openmpi-" version ".tar.bz2")) + (sha256 + (base32 "02x9xmpggw77mdpikjjx83j6i4v3gkqbncda73lk5axk0vr841cr")))) + + (inputs (modify-inputs (package-inputs openmpi) + ;; As of Open MPI 5.0.X, PMIx is used to communicate + ;; with SLURM, so SLURM'S PMI is no longer needed. + (delete "slurm") + (append ucx) ;for Infiniband support + (append openpmix) ;for PMI support (launching via "srun") + (append prrte))) ;for PMI support (launching via "srun") + (native-inputs (modify-inputs (package-native-inputs openmpi) + (append python))) + + (outputs '("out" "debug")) + (arguments + (substitute-keyword-arguments (package-arguments openmpi) + ((#: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")) + + "--with-hwloc=external" + "--with-libevent" + + ;; 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")) + + ;; 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))))))) + (define-public openmpi-c++ (package/inherit openmpi (name "openmpi-c++") -- 2.45.1