mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-27 04:36:55 +01:00
gnu: openmpi: Add dependency on SLURM.
This allows users to run Open MPI programs with 'srun'. * gnu/packages/mpi.scm (openmpi)[inputs]: Add SLURM. [arguments]: Add "--with-pmi" to #:configure-flags.
This commit is contained in:
parent
487cbb0164
commit
b07712bfb1
1 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2014, 2015, 2018 Eric Bavier <bavier@member.fsf.org>
|
;;; Copyright © 2014, 2015, 2018 Eric Bavier <bavier@member.fsf.org>
|
||||||
;;; Copyright © 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
|
;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
|
||||||
;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2017 Dave Love <fx@gnu.org>
|
;;; Copyright © 2017 Dave Love <fx@gnu.org>
|
||||||
|
@ -40,6 +40,7 @@ (define-module (gnu packages mpi)
|
||||||
#:use-module (gnu packages xml)
|
#:use-module (gnu packages xml)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages ncurses)
|
#:use-module (gnu packages ncurses)
|
||||||
|
#:use-module (gnu packages parallel)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages valgrind)
|
#:use-module (gnu packages valgrind)
|
||||||
#:use-module (srfi srfi-1)
|
#:use-module (srfi srfi-1)
|
||||||
|
@ -180,7 +181,8 @@ (define-public openmpi
|
||||||
`(("psm2" ,psm2))
|
`(("psm2" ,psm2))
|
||||||
'())
|
'())
|
||||||
("rdma-core" ,rdma-core)
|
("rdma-core" ,rdma-core)
|
||||||
("valgrind" ,valgrind)))
|
("valgrind" ,valgrind)
|
||||||
|
("slurm" ,slurm))) ;for PMI support (launching via "srun")
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("perl" ,perl)))
|
("perl" ,perl)))
|
||||||
|
@ -197,7 +199,12 @@ (define-public openmpi
|
||||||
,(string-append "--with-valgrind="
|
,(string-append "--with-valgrind="
|
||||||
(assoc-ref %build-inputs "valgrind"))
|
(assoc-ref %build-inputs "valgrind"))
|
||||||
,(string-append "--with-hwloc="
|
,(string-append "--with-hwloc="
|
||||||
(assoc-ref %build-inputs "hwloc")))
|
(assoc-ref %build-inputs "hwloc"))
|
||||||
|
|
||||||
|
;; Enable support for SLURM's Process Manager
|
||||||
|
;; Interface (PMI).
|
||||||
|
,(string-append "--with-pmi="
|
||||||
|
(assoc-ref %build-inputs "slurm")))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-before 'build 'remove-absolute
|
(add-before 'build 'remove-absolute
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Loading…
Reference in a new issue