From: "Ludovic Courtès" <ludo@gnu.org>
To: 74011@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludovic.courtes@inria.fr>
Subject: [bug#74011] [PATCH] gnu: prrte: Record the absolute file name of ‘prted’.
Date: Fri, 25 Oct 2024 12:46:24 +0200 [thread overview]
Message-ID: <8cf9c3e955e22aa68741caa03a33bb28bc0aa73b.1729853141.git.ludo@gnu.org> (raw)
From: Ludovic Courtès <ludovic.courtes@inria.fr>
Previously a command like:
guix shell --pure openmpi@5 openssh intel-mpi-benchmarks \
--with-input=openmpi@4=openmpi@5 slurm -- \
salloc -N2 -- mpirun -np 2 --map-by node IMB-MPI1 PingPong
would silently fail due to ‘prted’ not being found in $PATH.
* gnu/packages/parallel.scm (prrte)[arguments]: Add
‘patch-prted-reference’ phase.
Change-Id: Iff30cb5a4dcc9e9cfe6638d518ee4f19561289a0
---
gnu/packages/parallel.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm
index 202a98b2bc..85f8a114c3 100644
--- a/gnu/packages/parallel.scm
+++ b/gnu/packages/parallel.scm
@@ -727,7 +727,15 @@ (define-public prrte
(("_ABSOLUTE")
"")
(("PRTE_CONFIGURE_CLI")
- "\"[elided to reduce closure]\"")))))
+ "\"[elided to reduce closure]\""))))
+ (add-after 'unpack 'patch-prted-reference
+ (lambda _
+ ;; Record the absolute file name of 'prted' instead of
+ ;; assuming it will be found in $PATH at run time.
+ (substitute* "src/runtime/prte_mca_params.c"
+ (("prte_launch_agent =.*")
+ (string-append "prte_launch_agent = \""
+ #$output "/bin/prted\";\n"))))))
#:disallowed-references (list (canonical-package gcc))))
(inputs (list libevent
base-commit: a1714de3aa4f60d211c166876c3515f96384b0c7
--
2.46.0
next reply other threads:[~2024-10-25 10:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 10:46 Ludovic Courtès [this message]
2024-10-28 9:24 ` bug#74011: Close Andreas Enge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8cf9c3e955e22aa68741caa03a33bb28bc0aa73b.1729853141.git.ludo@gnu.org \
--to=ludo@gnu.org \
--cc=74011@debbugs.gnu.org \
--cc=ludovic.courtes@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.