From 13278a2a461707e93ef1a7ae1f11e9b18454b28c Mon Sep 17 00:00:00 2001 From: Romain GARBAGE Date: Fri, 12 Jul 2024 14:00:03 +0200 Subject: gnu: slurm: Add PMIx support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/parallel.scm (slurm) [inputs]: Add dependency. [arguments]: Update configure flags. (slurm-21.08)[inputs]: New field. Change-Id: I6544be5eb44980191d0788738ab960263c56c0ba Signed-off-by: Ludovic Courtès --- gnu/packages/parallel.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index e6384937fd..e75e902a68 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -229,6 +229,7 @@ when jobs finish.") `(,hwloc-2 "lib") json-c linux-pam + openpmix munge numactl readline)) @@ -245,6 +246,14 @@ when jobs finish.") (string-append "--with-json=" #$(this-package-input "json-c")) (string-append "--with-munge=" #$(this-package-input "munge")) + ;; Use PMIx bundled with Open MPI (this is required for Open MPI 5.x). + ;; Note: Older versions that inherit from this package lack the + ;; 'openpmix' dependency. + #$(let ((openmpix (this-package-input "openpmix"))) + (if openmpix + #~(string-append "--with-pmix=" #$openmpix) + "--without-pmix")) + ;; 32-bit support is marked as deprecated and needs to be ;; explicitly enabled. #$@(if (target-64bit?) '() '("--enable-deprecated"))) @@ -317,7 +326,12 @@ by managing a queue of pending work.") (patches '()) ;drop 'salloc' patch (sha256 (base32 - "1sjln54idc9rhg8f2nvm38sgs6fncncyzslas8ixy65pqz2hphbf")))))) + "1sjln54idc9rhg8f2nvm38sgs6fncncyzslas8ixy65pqz2hphbf")))) + + ;; This and older versions of slurm have PMIx support but they seem to + ;; require an older version of openpmix. Disable PMIx support. + (inputs (modify-inputs (package-inputs slurm-22.05) + (delete "openpmix"))))) (define-public slurm-20.11 (package -- cgit v1.2.3