Commit | Line | Data |
---|---|---|
fb0e3709 EB |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> | |
2b0d560a | 3 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> |
fb0e3709 EB |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | (define-module (gnu packages mpi) | |
21 | #:use-module (guix packages) | |
2b0d560a LC |
22 | #:use-module ((guix licenses) |
23 | #:hide (expat)) | |
fb0e3709 EB |
24 | #:use-module (guix download) |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages) | |
27 | #:use-module (gnu packages gcc) | |
2b0d560a LC |
28 | #:use-module (gnu packages linux) |
29 | #:use-module (gnu packages pciutils) | |
30 | #:use-module (gnu packages xorg) | |
31 | #:use-module (gnu packages gtk) | |
32 | #:use-module (gnu packages xml) | |
33 | #:use-module (gnu packages ncurses) | |
34 | #:use-module (gnu packages pkg-config) | |
1691b4cd | 35 | #:use-module (gnu packages valgrind) |
fb0e3709 EB |
36 | #:use-module (srfi srfi-1)) |
37 | ||
2b0d560a LC |
38 | (define-public hwloc |
39 | (package | |
40 | (name "hwloc") | |
41 | (version "1.9") | |
42 | (source (origin | |
43 | (method url-fetch) | |
44 | (uri (string-append "http://www.open-mpi.org/software/hwloc/v" | |
45 | version "/downloads/hwloc-" | |
46 | version ".tar.bz2")) | |
47 | (sha256 | |
48 | (base32 | |
49 | "0zjgiili2a8v63s8ly3a8qp8ibxv1jw3zbgm7diic3w1qgqiza14")))) | |
50 | (build-system gnu-build-system) | |
51 | (arguments | |
52 | ;; Enable libpci support, which effectively makes hwloc GPLv2+. | |
53 | '(#:configure-flags '("--enable-libpci"))) | |
54 | (inputs | |
5b527256 | 55 | `(("libx11" ,libx11) |
2b0d560a LC |
56 | ("cairo" ,cairo) |
57 | ("ncurses" ,ncurses) | |
58 | ("expat" ,expat))) | |
59 | (native-inputs | |
60 | `(("pkg-config" ,pkg-config))) | |
61 | (propagated-inputs | |
5b527256 EB |
62 | ;; 'hwloc.pc' refers to libpci and libnuma, hence the propagation. |
63 | `(("numactl" ,numactl) | |
64 | ("pciutils" ,pciutils))) | |
2b0d560a LC |
65 | (home-page "http://www.open-mpi.org/projects/hwloc/") |
66 | (synopsis "Abstraction of hardware architectures") | |
67 | (description | |
68 | "hwloc provides a portable abstraction (across OS, | |
69 | versions, architectures, ...) of the hierarchical topology of modern | |
70 | architectures, including NUMA memory nodes, sockets, shared caches, cores and | |
71 | simultaneous multithreading. It also gathers various attributes such as cache | |
72 | and memory information. It primarily aims at helping high-performance | |
73 | computing applications with gathering information about the hardware so as to | |
74 | exploit it accordingly and efficiently. | |
75 | ||
76 | hwloc may display the topology in multiple convenient formats. It also offers | |
77 | a powerful programming interface to gather information about the hardware, | |
78 | bind processes, and much more.") | |
79 | ||
80 | ;; But see above about linking against libpci. | |
81 | (license bsd-3))) | |
82 | ||
fb0e3709 EB |
83 | (define-public openmpi |
84 | (package | |
85 | (name "openmpi") | |
86 | (version "1.8.1") | |
87 | (source | |
88 | (origin | |
89 | (method url-fetch) | |
85a84cbd | 90 | (uri (string-append "http://www.open-mpi.org/software/ompi/v" |
fb0e3709 EB |
91 | (string-join (take (string-split version #\.) 2) |
92 | ".") | |
93 | "/downloads/openmpi-" version ".tar.bz2")) | |
94 | (sha256 | |
95 | (base32 | |
96 | "13z1q69f3qwmmhpglarfjminfy2yw4rfqr9jydjk5507q3mjf50p")))) | |
97 | (build-system gnu-build-system) | |
5b527256 | 98 | (inputs |
1691b4cd EB |
99 | `(("hwloc" ,hwloc) |
100 | ("gfortran" ,gfortran-4.8) | |
101 | ("valgrind" ,valgrind))) | |
5b527256 EB |
102 | (native-inputs |
103 | `(("pkg-config" ,pkg-config))) | |
fb0e3709 | 104 | (arguments |
5b527256 | 105 | `(#:configure-flags `("--enable-static" |
fb0e3709 EB |
106 | "--enable-oshmem" |
107 | ;; Thread support causes some applications to hang | |
108 | ;; "--enable-event-thread-support" | |
109 | ;; "--enable-opal-multi-threads" | |
110 | ;; "--enable-orte-progress-threads" | |
111 | ;; "--enable-mpi-thread-multiple" | |
112 | "--enable-mpi-ext=all" | |
5b527256 | 113 | "--with-devel-headers" |
1691b4cd EB |
114 | "--enable-debug" |
115 | "--enable-memchecker" | |
116 | ,(string-append "--with-valgrind=" | |
117 | (assoc-ref %build-inputs "valgrind")) | |
5b527256 EB |
118 | ,(string-append "--with-hwloc=" |
119 | (assoc-ref %build-inputs "hwloc"))))) | |
fb0e3709 | 120 | (home-page "http://www.open-mpi.org") |
8ede638c | 121 | (synopsis "MPI-2 implementation") |
fb0e3709 | 122 | (description |
8ede638c EB |
123 | "The Open MPI Project is an MPI-2 implementation that is developed and |
124 | maintained by a consortium of academic, research, and industry partners. Open | |
125 | MPI is therefore able to combine the expertise, technologies, and resources | |
126 | from all across the High Performance Computing community in order to build the | |
127 | best MPI library available. Open MPI offers advantages for system and | |
128 | software vendors, application developers and computer science researchers.") | |
fb0e3709 EB |
129 | ;; See file://LICENSE |
130 | (license bsd-2))) |