1bafbc9a5b0eb49762dc0cf967514bb1034cdffb
[jackhill/guix/guix.git] / gnu / packages / parallel.scm
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>
7 ;;;
8 ;;; This file is part of GNU Guix.
9 ;;;
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.
14 ;;;
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.
19 ;;;
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/>.
22
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))
41
42 (define-public parallel
43 (package
44 (name "parallel")
45 (version "20151222")
46 (source
47 (origin
48 (method url-fetch)
49 (uri (string-append "mirror://gnu/parallel/parallel-"
50 version ".tar.bz2"))
51 (sha256
52 (base32
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")
58 (description
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+)))
63
64 (define-public slurm
65 (package
66 (name "slurm")
67 (version "15.08.7.1")
68 (source (origin
69 (method url-fetch)
70 (uri (string-append
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"))
74 (sha256
75 (base32
76 "1rmi35l4img00dr4vic8cv8s7b6n1yx1mkq2s7kjf5hvqdh6s2ki"))
77 (patches (list
78 (search-patch "slurm-configure-remove-nonfree-contribs.patch")))
79 (modules '((guix build utils)))
80 (snippet
81 '(begin
82 (delete-file-recursively "contribs")
83 #t))))
84 ;; FIXME: More optional inputs could be added,
85 ;; in particular mysql and gtk+.
86 (inputs `(("expect" ,expect)
87 ("freeipmi" ,freeipmi)
88 ("hwloc" ,hwloc)
89 ("json-c" ,json-c)
90 ("linux-pam" , linux-pam)
91 ("munge" ,munge)
92 ("numactl" ,numactl)
93 ("openssl" ,openssl)
94 ("perl" ,perl)
95 ("python" ,python-wrapper)
96 ("readline" ,readline)))
97 (native-inputs
98 `(("autoconf" ,autoconf)
99 ("pkg-config" ,pkg-config)))
100 (build-system gnu-build-system)
101 (arguments
102 `(#:configure-flags
103 (list "--enable-pam"
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")))
109 #:phases
110 (modify-phases %standard-phases
111 (add-before
112 'configure 'autogen
113 (lambda _ (zero? (system* "autoconf"))))))) ; configure.ac was patched
114 (home-page "http://slurm.schedmd.com/")
115 (synopsis "Workload manager for cluster computing")
116 (description
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+)))