guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: openmpi: Add dependency on SLURM.


From: guix-commits
Subject: 02/04: gnu: openmpi: Add dependency on SLURM.
Date: Thu, 7 Feb 2019 09:46:54 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit b07712bfb13039b3ead57e9f3ca91d4e3ebadd2a
Author: Ludovic Courtès <address@hidden>
Date:   Thu Feb 7 15:24:01 2019 +0100

    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.
---
 gnu/packages/mpi.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm
index 6e56142..1f69a04 100644
--- a/gnu/packages/mpi.scm
+++ b/gnu/packages/mpi.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2014, 2015, 2018 Eric Bavier <address@hidden>
-;;; Copyright © 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <address@hidden>
+;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès 
<address@hidden>
 ;;; Copyright © 2014 Ian Denhardt <address@hidden>
 ;;; Copyright © 2016 Andreas Enge <address@hidden>
 ;;; Copyright © 2017 Dave Love <address@hidden>
@@ -40,6 +40,7 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages parallel)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages valgrind)
   #:use-module (srfi srfi-1)
@@ -180,7 +181,8 @@ bind processes, and much more.")
              `(("psm2" ,psm2))
              '())
        ("rdma-core" ,rdma-core)
-       ("valgrind" ,valgrind)))
+       ("valgrind" ,valgrind)
+       ("slurm" ,slurm)))              ;for PMI support (launching via "srun")
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("perl" ,perl)))
@@ -197,7 +199,12 @@ bind processes, and much more.")
                            ,(string-append "--with-valgrind="
                                            (assoc-ref %build-inputs 
"valgrind"))
                            ,(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
                   (add-before 'build 'remove-absolute
                     (lambda _



reply via email to

[Prev in Thread] Current Thread [Next in Thread]