You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

260 lines
11 KiB

gnu: Separate Python core packages from the rest. * gnu/packages/python.scm: Move hundreds of package definitions from here... * gnu/packages/python-xyz.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/benchmark.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/calendar.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/cluster.scm, gnu/packages/compression.scm, gnu/packages/connman.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/direct-connect.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/elf.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/enlightenment.scm, gnu/packages/finance.scm, gnu/packages/fltk.scm, gnu/packages/fontutils.scm, gnu/packages/freedesktop.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/geo.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/gtk.scm, gnu/packages/ham-radio.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/kde-frameworks.scm, gnu/packages/key-mon.scm, gnu/packages/libffi.scm, gnu/packages/libreoffice.scm, gnu/packages/libusb.scm, gnu/packages/lirc.scm, gnu/packages/logging.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/medical.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/nutrition.scm, gnu/packages/openldap.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/polkit.scm, gnu/packages/protobuf.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/qt.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/search.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/simulation.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/virtualization.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wicd.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: Update module references.
3 years ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
gnu: Remove ".git" from "https://github/…/….git". Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix swh) would sometimes return #f for these because the ".git" URLs are redirects to the non-".git" URLs. Consequently, 'guix lint -c archival' would keep saying "scheduled Software Heritage archival"; likewise, the fallback download code would fail. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm, gnu/packages/android.scm, gnu/packages/animation.scm, gnu/packages/arcan.scm, gnu/packages/assembly.scm, gnu/packages/audio.scm, gnu/packages/authentication.scm, gnu/packages/avr.scm, gnu/packages/axoloti.scm, gnu/packages/backup.scm, gnu/packages/bash.scm, gnu/packages/benchmark.scm, gnu/packages/bioconductor.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/build-tools.scm, gnu/packages/c.scm, gnu/packages/calendar.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/chez.scm, gnu/packages/clojure.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/compton.scm, gnu/packages/coq.scm, gnu/packages/cpp.scm, gnu/packages/cran.scm, gnu/packages/crypto.scm, gnu/packages/curl.scm, gnu/packages/databases.scm, gnu/packages/datastructures.scm, gnu/packages/debug.scm, gnu/packages/disk.scm, gnu/packages/distributed.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/dns.scm, gnu/packages/docker.scm, gnu/packages/education.scm, gnu/packages/efi.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/embedded.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/erlang.scm, gnu/packages/fabric-management.scm, gnu/packages/file-systems.scm, gnu/packages/finance.scm, gnu/packages/firmware.scm, gnu/packages/flashing-tools.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/fpga.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/genealogy.scm, gnu/packages/genimage.scm, gnu/packages/geo.scm, gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/gnome-xyz.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/golang.scm, gnu/packages/gpodder.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/groff.scm, gnu/packages/groovy.scm, gnu/packages/gtk.scm, gnu/packages/guile-xyz.scm, gnu/packages/guile.scm, gnu/packages/hardware.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-xyz.scm, gnu/packages/hexedit.scm, gnu/packages/i2p.scm, gnu/packages/ibus.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/ipfs.scm, gnu/packages/java-graphics.scm, gnu/packages/java-maths.scm, gnu/packages/java.scm, gnu/packages/javascript.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/jupyter.scm, gnu/packages/kodi.scm, gnu/packages/language.scm, gnu/packages/lego.scm, gnu/packages/less.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm, gnu/packages/lirc.scm, gnu/packages/lisp-xyz.scm, gnu/packages/llvm.scm, gnu/packages/logging.scm, gnu/packages/lolcode.scm, gnu/packages/lua.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/maths.scm, gnu/packages/maven.scm, gnu/packages/mes.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/node-xyz.scm, gnu/packages/ocaml.scm, gnu/packages/ocr.scm, gnu/packages/onc-rpc.scm, gnu/packages/opencl.scm, gnu/packages/opencog.scm, gnu/packages/pantheon.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/perl6.scm, gnu/packages/phabricator.scm, gnu/packages/popt.scm, gnu/packages/printers.scm, gnu/packages/prolog.scm, gnu/packages/protobuf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/qt.scm, gnu/packages/radio.scm, gnu/packages/rails.scm, gnu/packages/rdf.scm, gnu/packages/rednotebook.scm, gnu/packages/rpc.scm, gnu/packages/rsync.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/screen.scm, gnu/packages/security-token.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/shellutils.scm, gnu/packages/simh.scm, gnu/packages/sml.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/stenography.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/synergy.scm, gnu/packages/telephony.scm, gnu/packages/terminals.scm, gnu/packages/tex.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tmux.scm, gnu/packages/tor.scm, gnu/packages/toys.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/virtualization.scm, gnu/packages/vlang.scm, gnu/packages/vnc.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wireservice.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
1 year ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
  3. ;;; Copyright © 2017 Dave Love <fx@gnu.org>
  4. ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
  5. ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
  6. ;;; Copyright © 2019 Eric Bavier <bavier@member.fsf.org>
  7. ;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
  8. ;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
  9. ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
  10. ;;;
  11. ;;; This file is part of GNU Guix.
  12. ;;;
  13. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  14. ;;; under the terms of the GNU General Public License as published by
  15. ;;; the Free Software Foundation; either version 3 of the License, or (at
  16. ;;; your option) any later version.
  17. ;;;
  18. ;;; GNU Guix is distributed in the hope that it will be useful, but
  19. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  20. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. ;;; GNU General Public License for more details.
  22. ;;;
  23. ;;; You should have received a copy of the GNU General Public License
  24. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  25. (define-module (gnu packages benchmark)
  26. #:use-module ((guix licenses) #:prefix license:)
  27. #:use-module (guix packages)
  28. #:use-module (guix download)
  29. #:use-module (guix git-download)
  30. #:use-module (guix build-system cmake)
  31. #:use-module (guix build-system gnu)
  32. #:use-module (gnu packages)
  33. #:use-module (gnu packages check)
  34. #:use-module (gnu packages compression)
  35. #:use-module (gnu packages linux)
  36. #:use-module (gnu packages maths)
  37. #:use-module (gnu packages mpi)
  38. #:use-module (gnu packages perl)
  39. #:use-module (gnu packages python)
  40. #:use-module (gnu packages python-science)
  41. #:use-module (gnu packages python-xyz)
  42. #:use-module (gnu packages storage)
  43. #:use-module (ice-9 match))
  44. (define-public fio
  45. (package
  46. (name "fio")
  47. (version "3.21")
  48. (source (origin
  49. (method url-fetch)
  50. (uri (string-append "https://brick.kernel.dk/snaps/"
  51. "fio-" version ".tar.bz2"))
  52. (sha256
  53. (base32
  54. "0np1scxqfpd6fcnnnfyn8xdsh6lc5pyq3vk1jm1zk7sa58fvccd4"))))
  55. (build-system gnu-build-system)
  56. (arguments
  57. '(#:test-target "test"
  58. #:phases
  59. (modify-phases %standard-phases
  60. (add-after
  61. 'unpack 'patch-paths
  62. (lambda* (#:key inputs outputs #:allow-other-keys)
  63. (let ((out (assoc-ref outputs "out"))
  64. (gnuplot (string-append (assoc-ref inputs "gnuplot")
  65. "/bin/gnuplot")))
  66. (substitute* "tools/plot/fio2gnuplot"
  67. (("/usr/share/fio") (string-append out "/share/fio"))
  68. ;; FIXME (upstream): The 'gnuplot' executable is used inline
  69. ;; in various os.system() calls mixed with *.gnuplot filenames.
  70. (("; do gnuplot") (string-append "; do " gnuplot))
  71. (("gnuplot mymath") (string-append gnuplot " mymath"))
  72. (("gnuplot mygraph") (string-append gnuplot " mygraph")))
  73. #t)))
  74. (replace 'configure
  75. (lambda* (#:key outputs #:allow-other-keys)
  76. ;; The configure script doesn't understand some of the
  77. ;; GNU options, so we can't use #:configure-flags.
  78. (let ((out (assoc-ref outputs "out")))
  79. (invoke "./configure"
  80. (string-append "--prefix=" out))
  81. #t)))
  82. ;; The main `fio` executable is fairly small and self contained.
  83. ;; Moving the auxiliary python and gnuplot scripts to a separate
  84. ;; output saves almost 400 MiB on the closure.
  85. (add-after 'install 'move-outputs
  86. (lambda* (#:key outputs #:allow-other-keys)
  87. (let ((oldbin (string-append (assoc-ref outputs "out") "/bin"))
  88. (newbin (string-append (assoc-ref outputs "utils") "/bin")))
  89. (mkdir-p newbin)
  90. (for-each (lambda (file)
  91. (let ((src (string-append oldbin "/" file))
  92. (dst (string-append newbin "/" file)))
  93. (link src dst)
  94. (delete-file src)))
  95. '("fio2gnuplot" "fiologparser_hist.py"
  96. "fiologparser.py"))
  97. ;; Make sure numpy et.al is found.
  98. (wrap-program (string-append newbin "/fiologparser_hist.py")
  99. `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
  100. #t))))))
  101. (outputs '("out" "utils"))
  102. (inputs
  103. `(("ceph" ,ceph "lib")
  104. ("libaio" ,libaio)
  105. ("gnuplot" ,gnuplot)
  106. ("zlib" ,zlib)
  107. ("python-numpy" ,python2-numpy)
  108. ("python-pandas" ,python2-pandas)
  109. ("python" ,python-2)))
  110. (home-page "https://github.com/axboe/fio")
  111. (synopsis "Flexible I/O tester")
  112. (description
  113. "fio is a tool that will spawn a number of threads or processes doing a
  114. particular type of I/O action as specified by the user. The typical use of fio
  115. is to write a job file matching the I/O load one wants to simulate.")
  116. ;; The software is distributed under the GPL2, but a handful of components
  117. ;; are covered by other licenses.
  118. (license (list license:gpl2 license:gpl2+ license:bsd-2
  119. license:public-domain))))
  120. ;; Parameterized in anticipation of m(va)pich support
  121. (define (intel-mpi-benchmarks mpi)
  122. (package
  123. (name (string-append "intel-mpi-benchmarks"
  124. (if (string=? (package-name mpi) "openmpi")
  125. ""
  126. (string-append "-" (package-name mpi)))))
  127. (version "2019.3")
  128. (source (origin
  129. (method git-fetch)
  130. (uri (git-reference
  131. (url "https://github.com/intel/mpi-benchmarks")
  132. (commit (string-append "IMB-v" version))))
  133. (file-name (git-file-name name version))
  134. (sha256
  135. (base32
  136. "0si5xi6ilhd3w0gbsg124589pvp094hvf366rvjjb9pi7pdk5p4i"))))
  137. (build-system gnu-build-system)
  138. (inputs
  139. `(("mpi" ,mpi)))
  140. (arguments
  141. `(#:phases
  142. (modify-phases %standard-phases
  143. (delete 'configure)
  144. (delete 'check)
  145. (replace 'install
  146. (lambda* (#:key outputs #:allow-other-keys)
  147. (define (benchmark? file stat)
  148. (and (string-prefix? "IMB-" (basename file))
  149. (executable-file? file)))
  150. (let* ((out (assoc-ref outputs "out"))
  151. (bin (string-append out "/bin")))
  152. (for-each (lambda (file)
  153. (install-file file bin))
  154. (find-files "." benchmark?))
  155. #t))))
  156. ;; The makefile doesn't express all the dependencies, it seems.
  157. #:parallel-build? #t
  158. #:make-flags '("CC=mpicc" "CXX=mpicxx")))
  159. (home-page "https://software.intel.com/en-us/articles/intel-mpi-benchmarks")
  160. (synopsis "Benchmarks for the Message Passing Interface (MPI)")
  161. (description
  162. "This package provides benchmarks for implementations of the @dfn{Message
  163. Passing Interface} (MPI). It contains MPI performance measurements for
  164. point-to-point and global communication, and file, operations for a range of
  165. message sizes. The generated benchmark data fully characterize:
  166. @itemize
  167. @item
  168. Performance of a cluster system, including node performance, network latency,
  169. and throughput;
  170. @item
  171. Efficiency of the MPI implementation.
  172. @end itemize")
  173. (license license:cpl1.0)))
  174. (define-public intel-mpi-benchmarks/openmpi
  175. (intel-mpi-benchmarks openmpi))
  176. (define-public imb-openmpi
  177. (deprecated-package "imb-openmpi" intel-mpi-benchmarks/openmpi))
  178. (define-public multitime
  179. (package
  180. (name "multitime")
  181. (version "1.4")
  182. (source (origin
  183. (method url-fetch)
  184. (uri (string-append "https://tratt.net/laurie/src/"
  185. "multitime/releases/"
  186. "multitime-" version ".tar.gz"))
  187. (sha256
  188. (base32
  189. "0iyfsdrbyqa7a4ifrh19l9a48hgv7ld6m0d8yf9bkl12q0qw91fx"))))
  190. (build-system gnu-build-system)
  191. (arguments '(#:tests? #f)) ; there are no tests
  192. (home-page "https://tratt.net/laurie/src/multitime/")
  193. (synopsis "Time command execution over multiple executions")
  194. (description
  195. "The @code{time} utility is a simple and often effective way of measuring
  196. how long a command takes to run (wall time). Unfortunately, running a command
  197. once can give misleading timings. @code{multitime} is, in essence, a simple
  198. extension to @code{time} which runs a command multiple times and prints the
  199. timing means, standard deviations, mins, medians, and maxes having done so.
  200. This can give a much better understanding of the command's performance.")
  201. (license license:expat)))
  202. (define-public benchmark
  203. (package
  204. (name "benchmark")
  205. (version "1.5.0")
  206. (source (origin
  207. (method git-fetch)
  208. (uri (git-reference
  209. (url "https://github.com/google/benchmark")
  210. (commit (string-append "v" version))))
  211. (file-name (git-file-name name version))
  212. (sha256
  213. (base32
  214. "0r9dbg4cbk47gwmayys31a83m3y67k0kh1f6pl8i869rbd609ndh"))
  215. (patches (search-patches "benchmark-unbundle-googletest.patch"))))
  216. (build-system cmake-build-system)
  217. (native-inputs
  218. `(("googletest" ,googletest)))
  219. (home-page "https://github.com/google/benchmark")
  220. (synopsis "Microbenchmark support library")
  221. (description
  222. "Benchmark is a library to benchmark code snippets,
  223. similar to unit tests.")
  224. (license license:asl2.0)))
  225. (define-public bonnie++
  226. (package
  227. (name "bonnie++")
  228. (version "1.98")
  229. (source (origin
  230. (method url-fetch)
  231. (uri (string-append "https://www.coker.com.au/bonnie++/bonnie++-"
  232. version ".tgz"))
  233. (sha256
  234. (base32
  235. "010bmlmi0nrlp3aq7p624sfaj5a65lswnyyxk3cnz1bqig0cn2vf"))))
  236. (build-system gnu-build-system)
  237. (native-inputs
  238. `(("perl" ,perl)))
  239. (arguments '(#:tests? #f)) ; there are no tests
  240. (home-page "https://doc.coker.com.au/projects/bonnie/")
  241. (synopsis "Hard drive and file system benchmark suite")
  242. (description
  243. "Bonnie++ is a benchmark suite that is aimed at performing a number of
  244. simple tests of hard drive and file system performance. Bonnie++ allows you to
  245. benchmark how your file systems perform with respect to data read and write
  246. speed, the number of seeks that can be performed per second, and the number of
  247. file metadata operations that can be performed per second.")
  248. (license license:gpl2))) ;GPL 2 only, see copyright.txt