gnu: slurm: Add PMIx support.

* 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 <ludo@gnu.org>
This commit is contained in:
Romain GARBAGE 2024-07-12 14:00:03 +02:00 committed by Ludovic Courtès
parent 1150b443c1
commit 13278a2a46
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -229,6 +229,7 @@ (define-public slurm
`(,hwloc-2 "lib")
json-c
linux-pam
openpmix
munge
numactl
readline))
@ -245,6 +246,14 @@ (define-public slurm
(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 @@ (define-public slurm-21.08
(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