tadaam.scm 11 KB
Newer Older
PRUVOST Florent's avatar
PRUVOST Florent committed
1
2
3
;;; This module extends GNU Guix and is licensed under the same terms, those
;;; of the GNU GPL version 3 or (at your option) any later version.
;;;
4
;;; Copyright © 2017, 2018, 2019 Inria
PRUVOST Florent's avatar
PRUVOST Florent committed
5

GUILBAUD Adrien's avatar
GUILBAUD Adrien committed
6
(define-module (inria tadaam)
PRUVOST Florent's avatar
PRUVOST Florent committed
7
8
9
10
11
12
13
14
15
16
17
18
19
  #:use-module (guix)
  #:use-module (guix build-system gnu)
  #:use-module (guix svn-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages mpi)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages gcc)
  #:use-module (gnu packages maths)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages linux)
20
21
  #:use-module (gnu packages admin)
  #:use-module (gnu packages base)
PRUVOST Florent's avatar
PRUVOST Florent committed
22
23
24
25
26
27
28
29
30
  #:use-module (inria eztrace)
  #:use-module (inria simgrid)
  #:use-module (ice-9 match))

(define %pm2-home-page "http://pm2.gforge.inria.fr/")
(define %pm2-svn "https://scm.gforge.inria.fr/anonscm/svn/pm2/trunk")
(define %padicotm-svn "https://scm.gforge.inria.fr/anonscm/svn/padico/PadicoTM/trunk")
(define %patch-path "inria/patches/autogen_building-tools.patch")

31
32
33
34
35
(define %v2019-05-13 "2019-05-13")
(define %v2019-05-13-pm2-revision 28048)
(define %v2019-05-13-padicotm-revision 5248)

(define-public puk-2019-05-13
PRUVOST Florent's avatar
PRUVOST Florent committed
36
37
  (package
   (name "puk")
38
   (version %v2019-05-13)
PRUVOST Florent's avatar
PRUVOST Florent committed
39
40
   (home-page (string-append %pm2-home-page "/PadicoTM"))
   (source (origin
41
42
43
            (method svn-fetch)
            (uri (svn-reference
                  (url (string-append %padicotm-svn "/PadicoTM/Puk"))
44
                  (revision %v2019-05-13-padicotm-revision)))
45
            (sha256
46
             (base32 "1zy8wgwns1i0hazc87mfwizzyaq4c0zyhd92amaw20wflfnchwb3"))
47
            (patches (search-patches %patch-path))))
PRUVOST Florent's avatar
PRUVOST Florent committed
48
49
50
51
   (build-system gnu-build-system)
   (arguments
    '(#:out-of-source? #t
      #:configure-flags '("--enable-optimize"
52
53
                          "--disable-debug"
                          "--disable-trace")
PRUVOST Florent's avatar
PRUVOST Florent committed
54
      #:phases (modify-phases %standard-phases
55
56
57
58
59
60
                 (add-after 'unpack 'fix-hardcoded-paths
                   (lambda _
                     (substitute* "building-tools/common_vars.mk.in"
                       (("/bin/sh")  (which "sh")))
                     #t))
                 (delete 'check))))
PRUVOST Florent's avatar
PRUVOST Florent committed
61
62
63
64
65
66
67
68
69
70
   (native-inputs
    `(("pkg-config" ,pkg-config)
      ("autoconf", autoconf)
      ("automake", automake)))
   (propagated-inputs
    `(("expat" ,expat)))
   (synopsis "dummy")
   (description "Dummy")
   (license license:lgpl2.0)))

71
72
73
74
(define-public puk
  puk-2019-05-13)

(define-public pioman-2019-05-13
PRUVOST Florent's avatar
PRUVOST Florent committed
75
76
  (package
   (name "pioman")
77
   (version %v2019-05-13)
PRUVOST Florent's avatar
PRUVOST Florent committed
78
79
   (home-page (string-append %pm2-home-page "/pioman"))
   (source (origin
80
81
82
            (method svn-fetch)
            (uri (svn-reference
                  (url (string-append %pm2-svn "/pioman"))
83
                  (revision %v2019-05-13-pm2-revision)))
84
            (sha256
85
             (base32 "1b8c1ys3vg49pnzcvjzxpygw242dn1z4xprjg971181343bbgc20"))
86
            (patches (search-patches %patch-path))))
PRUVOST Florent's avatar
PRUVOST Florent committed
87
88
89
90
   (build-system gnu-build-system)
   (arguments
    '(#:out-of-source? #t
      #:configure-flags '("--enable-optimize"
91
92
                          "--disable-debug"
                          "--with-pthread")
PRUVOST Florent's avatar
PRUVOST Florent committed
93
      #:phases (modify-phases %standard-phases
94
95
96
97
98
99
                 (add-after 'unpack 'fix-hardcoded-paths
                   (lambda _
                     (substitute* "building-tools/common_vars.mk.in"
                       (("/bin/sh")  (which "sh")))
                     #t))
                 (delete 'check))))
PRUVOST Florent's avatar
PRUVOST Florent committed
100
101
102
103
104
105
106
107
108
109
110
   (native-inputs
    `(("pkg-config" ,pkg-config)
      ("autoconf" ,autoconf)
      ("automake" ,automake)))
   (propagated-inputs
    `(("puk" ,puk)
      ("hwloc" ,hwloc "lib")))
   (synopsis "dummy")
   (description "Dummy")
   (license license:lgpl2.0)))

111
112
113
114
(define-public pioman
  pioman-2019-05-13)

(define-public padicotm-2019-05-13
PRUVOST Florent's avatar
PRUVOST Florent committed
115
116
  (package
   (name "padicotm")
117
   (version %v2019-05-13)
PRUVOST Florent's avatar
PRUVOST Florent committed
118
119
   (home-page (string-append %pm2-home-page "/PadicoTM"))
   (source (origin
120
121
122
            (method svn-fetch)
            (uri (svn-reference
                  (url (string-append %padicotm-svn "/PadicoTM/PadicoTM"))
123
                  (revision %v2019-05-13-padicotm-revision)))
124
            (file-name (string-append name "-" version "-checkout"))
125
            (sha256
126
             (base32 "1ry745qc1acr7kwri7yzhyf8pg7lp4hg2mxakqqyx4wdpkpixyr9"))
127
            (patches (search-patches %patch-path))))
PRUVOST Florent's avatar
PRUVOST Florent committed
128
129
130
131
   (build-system gnu-build-system)
   (arguments
    '(#:out-of-source? #t
      #:configure-flags '("--enable-optimize"
132
133
                          "--disable-debug"
                          "--with-pioman"
134
135
136
137
                          "--without-pukabi"

                          ;; 'padico-d' wants to write to $localstatedir/log.
                          "--localstatedir=/var")
PRUVOST Florent's avatar
PRUVOST Florent committed
138
      #:phases (modify-phases %standard-phases
139
140
141
142
143
                 (add-after 'unpack 'fix-hardcoded-paths
                   (lambda _
                     (substitute* "building-tools/common_vars.mk.in"
                       (("/bin/sh")  (which "sh")))
                     #t))
144
145
146
147
148
149
150
151
152
153
154
155
156
                 (delete 'check)
                 (add-after 'install 'wrap-padico-launch
                   (lambda* (#:key inputs outputs #:allow-other-keys)
                     ;; Wrap the 'padico-launch' shell script so that it
                     ;; finds all the commands that it needs.
                     (define (input-directory input)
                       (string-append (assoc-ref inputs input)
                                      "/bin"))

                     (let* ((path (map input-directory
                                       '("util-linux" ;'setsid'
                                         "inetutils"  ;'hostname'
                                         "procps"     ;'ps'
157
                                         "hwloc"      ;for 'padico-d'
158
159
160
161
162
163
164
165
166
167
168
169
                                         "which"
                                         "tar" "gzip"
                                         "coreutils" "grep" "sed")))
                            (out  (assoc-ref outputs "out"))
                            (bin  (string-append out "/bin")))
                       (wrap-program (string-append bin "/padico-launch")
                         `("PATH" ":" prefix ,path))
                       #t))))))
   (inputs
    `(("util-linux" ,util-linux)
      ("procps" ,procps)
      ("inetutils" ,inetutils)
170
      ("hwloc" ,hwloc)
171
      ("which" ,which)))
PRUVOST Florent's avatar
PRUVOST Florent committed
172
173
174
175
   (native-inputs
    `(("pkg-config" ,pkg-config)
      ("autoconf" ,autoconf)
      ("automake" ,automake)
176
      ("hwloc:lib" ,hwloc "lib")
PRUVOST Florent's avatar
PRUVOST Florent committed
177
178
179
180
181
182
183
184
185
186
      ("rdma-core" ,rdma-core)
      ("psm" ,psm)
      ("psm2" ,psm2)))
   (propagated-inputs
    `(("puk" ,puk)
      ("pioman" ,pioman)))
   (synopsis "dummy")
   (description "Dummy")
   (license license:lgpl2.0)))

187
188
189
190
(define-public padicotm
  padicotm-2019-05-13)

(define-public padicotm-mini-2019-05-13
PRUVOST Florent's avatar
PRUVOST Florent committed
191
192
193
194
195
196
197
198
199
200
  (package
   (inherit padicotm)
   (name "padicotm-mini")
   (arguments
    (substitute-keyword-arguments (package-arguments padicotm)
      ((#:configure-flags flags '())
       `(cons "--without-pioman" (delete "--with-pioman" ,flags)))))
   (propagated-inputs
    `(("puk" ,puk)))))

201
202
203
204
(define-public padicotm-mini
  padicotm-mini-2019-05-13)

(define-public nmad-2019-05-13
PRUVOST Florent's avatar
PRUVOST Florent committed
205
206
  (package
   (name "nmad")
207
   (version %v2019-05-13)
PRUVOST Florent's avatar
PRUVOST Florent committed
208
209
   (home-page (string-append %pm2-home-page "/NewMadeleine"))
   (source (origin
210
211
212
            (method svn-fetch)
            (uri (svn-reference
                  (url (string-append %pm2-svn "/nmad"))
213
                  (revision %v2019-05-13-pm2-revision)))
214
            (sha256
215
             (base32 "1i4cxan90rg0ipy7c5w3f93k6gpgx38x75b3gfy9wprjf6x0ybwm"))
216
            (patches (search-patches %patch-path))))
PRUVOST Florent's avatar
PRUVOST Florent committed
217
218
219
220
   (build-system gnu-build-system)
   (arguments
    '(#:out-of-source? #t
      #:configure-flags '("--enable-optimize"
221
222
223
224
225
                          "--disable-debug"
                          "--with-pioman"
                          "--without-pukabi"
                          "--enable-mpi"
                          "--disable-sampling")
PRUVOST Florent's avatar
PRUVOST Florent committed
226
      #:phases (modify-phases %standard-phases
227
228
229
230
231
                 (add-after 'unpack 'fix-hardcoded-paths
                   (lambda _
                     (substitute* "building-tools/common_vars.mk.in"
                       (("/bin/sh")  (which "sh")))
                     #t))
232
233
234
235
236
237
238
239
240
241
242
                 (add-after 'install 'set-libexec-dir-mpicc
                   (lambda* (#:key outputs #:allow-other-keys)
                     (let ((out (assoc-ref outputs "out")))
                       (for-each (lambda (file)
                                   (substitute* file
                                     (("^libexec=.*")
                                      (string-append "libexec=" out
                                                     "/libexec\n"))))
                                 (find-files (string-append out "/bin")
                                             "^mpi"))
                       #t)))
243
                 (delete 'check))))
PRUVOST Florent's avatar
PRUVOST Florent committed
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
   (native-inputs
    `(("pkg-config" ,pkg-config)
      ("autoconf" ,autoconf)
      ("automake" ,automake)
      ("gfortran" ,gfortran)
      ("hwloc" ,hwloc "lib")))
   (propagated-inputs
    `(("padicotm" ,padicotm)))
   (inputs
    `(("rdma-core" ,rdma-core)
      ("psm" ,psm)
      ("psm2" ,psm2)))
   (synopsis "dummy")
   (description "Dummy")
   (license license:lgpl2.0)))

260
261
262
263
(define-public nmad
  nmad-2019-05-13)

(define-public nmad-mini-2019-05-13
PRUVOST Florent's avatar
PRUVOST Florent committed
264
265
266
267
268
269
270
271
272
273
  (package
   (inherit nmad)
   (name "nmad-mini")
   (arguments
    (substitute-keyword-arguments (package-arguments nmad)
      ((#:configure-flags flags '())
       `(cons "--without-pioman" (delete "--with-pioman" ,flags)))))
   (propagated-inputs
    `(("padicotm" ,padicotm-mini)
      ,@(delete `("padicotm" ,padicotm) (package-inputs nmad))))))
274
275
276

(define-public nmad-mini
  nmad-mini-2019-05-13)
GUILBAUD Adrien's avatar
GUILBAUD Adrien committed
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315

(define-public mpibenchmark-2019-05-13
  (package
   (name "mpibenchmark")
   (version %v2019-05-13)
   (home-page (string-append %pm2-home-page "/mpibenchmark"))
   (source (origin
            (method svn-fetch)
            (uri (svn-reference
                  (url (string-append %pm2-svn "/mpibenchmark"))
                  (revision %v2019-05-13-pm2-revision)))
            (sha256
             (base32 "14xay0gij29v6q7xxyh79acvfwj3qmx2gf2whrphl8ycyh74a46g"))))
   (build-system gnu-build-system)
   (arguments
    '(#:out-of-source? #t
      #:configure-flags '("--enable-optimize"
                          "--disable-debug")
      #:phases (modify-phases %standard-phases
                 (add-after 'unpack 'fix-hardcoded-paths
                   (lambda _
                     (substitute* "building-tools/common_vars.mk.in"
                       (("/bin/sh")  (which "sh")))
                     #t))
                 (delete 'check))))
   (native-inputs
    `(("pkg-config" ,pkg-config)
      ("autoconf" ,autoconf)
      ("automake" ,automake)))
   (inputs
    `(("hwloc" ,hwloc "lib")
      ("gnuplot" ,gnuplot)
      ("mpi" ,nmad)))
   (synopsis "dummy")
   (description "Dummy")
   (license license:lgpl2.0)))

(define-public mpibenchmark
  mpibenchmark-2019-05-13)