1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Eric Bavier <bavier@member.fsf.org>
3 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
5 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
6 ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages parallel)
24 #:use-module (guix build-system gnu)
25 #:use-module (guix download)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix packages)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages admin)
30 #:use-module (gnu packages autotools)
31 #:use-module (gnu packages freeipmi)
32 #:use-module (gnu packages linux)
33 #:use-module (gnu packages mpi)
34 #:use-module (gnu packages perl)
35 #:use-module (gnu packages pkg-config)
36 #:use-module (gnu packages python)
37 #:use-module (gnu packages readline)
38 #:use-module (gnu packages tcl)
39 #:use-module (gnu packages tls)
40 #:use-module (gnu packages web))
42 (define-public parallel
49 (uri (string-append "mirror://gnu/parallel/parallel-"
53 "03czpnsj77xxzqxzzr1b39ym9acn94hknzbilbh28v5q1wk7r4mf"))))
54 (build-system gnu-build-system)
55 (inputs `(("perl" ,perl)))
56 (home-page "http://www.gnu.org/software/parallel/")
57 (synopsis "Build and execute command lines in parallel")
59 "GNU Parallel is a tool for executing shell jobs in parallel using one
60 or more computers. Jobs can consist of single commands or of scripts
61 and they are executed on lists of files, hosts, users or other items.")
62 (license license:gpl3+)))
71 "https://github.com/SchedMD/slurm/archive/slurm-"
72 (string-join (string-split version #\.) "-") ".tar.gz"))
73 (file-name (string-append name "-" version ".tar.gz"))
76 "1rmi35l4img00dr4vic8cv8s7b6n1yx1mkq2s7kjf5hvqdh6s2ki"))
78 (search-patch "slurm-configure-remove-nonfree-contribs.patch")))
79 (modules '((guix build utils)))
82 (delete-file-recursively "contribs")
84 ;; FIXME: More optional inputs could be added,
85 ;; in particular mysql and gtk+.
86 (inputs `(("expect" ,expect)
87 ("freeipmi" ,freeipmi)
90 ("linux-pam" , linux-pam)
95 ("python" ,python-wrapper)
96 ("readline" ,readline)))
98 `(("autoconf" ,autoconf)
99 ("pkg-config" ,pkg-config)))
100 (build-system gnu-build-system)
104 (string-append "--with-freeipmi=" (assoc-ref %build-inputs "freeipmi"))
105 (string-append "--with-hwloc=" (assoc-ref %build-inputs "hwloc"))
106 (string-append "--with-json=" (assoc-ref %build-inputs "json-c"))
107 (string-append "--with-munge=" (assoc-ref %build-inputs "munge"))
108 (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl")))
110 (modify-phases %standard-phases
113 (lambda _ (zero? (system* "autoconf"))))))) ; configure.ac was patched
114 (home-page "http://slurm.schedmd.com/")
115 (synopsis "Workload manager for cluster computing")
117 "SLURM is a fault-tolerant and highly scalable cluster management and job
118 scheduling system for large and small clusters. It allocates access to
119 resources (computer nodes) to users for some duration of time, provides a
120 framework for starting, executing, and monitoring work (typically a parallel
121 job) on a set of allocated nodes, and arbitrates contention for resources
122 by managing a queue of pending work.")
123 (license license:gpl2+)))