guix-glicid/glicid/packages/benchmark.scm

134 lines
3.8 KiB
Scheme
Raw Normal View History

2021-10-26 12:48:51 +02:00
(define-module (glicid packages benchmark)
2021-12-03 09:56:33 +01:00
#:use-module (guix build-system gnu)
2021-10-26 12:46:12 +02:00
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
2021-12-03 09:56:33 +01:00
#:use-module (guix packages)
2021-11-17 22:29:54 +01:00
#:use-module ((gnu packages benchmark) #:prefix gnu:)
2021-12-03 09:56:33 +01:00
#:use-module (gnu packages commencement)
#:use-module (gnu packages compression)
#:use-module (gnu packages mpi)
2021-10-26 12:46:12 +02:00
#:use-module (glicid packages mpi)
2021-12-03 09:56:33 +01:00
#:use-module (glicid packages gcc)
2021-11-30 16:59:09 +01:00
#:use-module (glicid utils)
2021-10-26 12:46:12 +02:00
)
2021-11-23 10:32:08 +01:00
(define-public intel-mpi-benchmarks/openmpi-2021.3
2021-12-03 09:56:33 +01:00
(package
(inherit gnu:intel-mpi-benchmarks/openmpi)
2022-02-28 16:22:26 +01:00
(name "intel-mpi-benchmarks-upstream")
2021-12-03 09:56:33 +01:00
(version "2021.3")
(source
(origin
(inherit (package-source gnu:intel-mpi-benchmarks/openmpi))
(method git-fetch)
(uri (git-reference
(url "https://github.com/intel/mpi-benchmarks")
(commit (string-append "IMB-v" version))
))
(file-name (git-file-name name version))
(sha256 (base32 "04kczch2hlfzbgk929vcxx480kc6raba8rbz246j7d26k1z1zh8h"))
)
2021-11-30 16:59:09 +01:00
)
)
2021-12-03 09:56:33 +01:00
)
2021-11-30 16:59:09 +01:00
(define-public intel-mpi-benchmarks/openmpi-2021.3-libfabric-rdma
2021-12-03 09:56:33 +01:00
(transform-package (
(instead-of "openmpi" openmpi-glicid-libfabric-rdma)
intel-mpi-benchmarks/openmpi-2021.3
) "fab+rdma")
)
2021-11-30 16:59:09 +01:00
2021-11-23 10:32:08 +01:00
(define intel-mpi-benchmark-transform-gcc-11
2021-12-03 09:56:33 +01:00
(gcc11-instead-of-gcc intel-mpi-benchmarks/openmpi-2021.3-libfabric-rdma)
)
2021-11-23 10:32:08 +01:00
(define-public intel-mpi-benchmarks/openmpi-2021.3-gcc-11
2021-12-03 09:56:33 +01:00
(package
(inherit intel-mpi-benchmark-transform-gcc-11)
(version (string-append (package-version intel-mpi-benchmark-transform-gcc-11) "-gcc-11" ))
)
2021-11-23 10:32:08 +01:00
)
(define-public stream-benchmarks
2021-12-03 09:56:33 +01:00
(package
(name "stream-benchmarks")
(version "5.10-jh")
(source (origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/jeffhammond/STREAM.git")
(commit "HEAD")
)
)
(sha256 (base32 "1b5ka2h6rhp2103app6p0vq29y7qixcli9w874hb33y05ggjin8m"))
(file-name (string-append name "-" version "-checkout"))
))
2021-11-23 10:32:08 +01:00
(build-system gnu-build-system)
2021-11-23 15:57:07 +01:00
(arguments
2021-12-03 09:56:33 +01:00
`(#:phases
(modify-phases %standard-phases
(delete 'configure) ; no configure
(delete 'check) ; no check
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
;; Le Makefile du paquet ne fournit pas de règle « install »
;; alors on le fait nous-mêmes.
(let
((bin (string-append (assoc-ref outputs "out") "/bin")))
(install-file "stream_c.exe" bin)
(install-file "stream_f.exe" bin)
#t
)
)
)
)
2021-11-23 15:57:07 +01:00
)
2021-12-03 09:56:33 +01:00
)
(inputs `(
("gfortran-toolchain" ,gfortran-toolchain)
))
(synopsis "STREAM benchmark")
(description "STREAM benchmark")
(home-page "https://")
(license "")
)
2021-11-23 15:57:07 +01:00
)
2021-10-26 12:46:12 +02:00
2021-11-17 21:59:36 +01:00
;;defined by gricad / PA Boutier
(define-public osu-benchmarks
2021-12-03 09:56:33 +01:00
(package
2021-11-17 21:59:36 +01:00
(name "osu-benchmarks")
(version "5.8")
(source (origin
2021-12-03 09:56:33 +01:00
(method url-fetch)
(uri (string-append "https://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-" version ".tgz"))
(sha256 (base32 "19a4wg0msipibkxsi8i0c34d07512yfaj2k37dxg5541ysdw690f"))
))
2021-11-17 21:59:36 +01:00
(build-system gnu-build-system)
(arguments
2021-12-03 09:56:33 +01:00
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'setenv
(lambda _
(setenv "CC" (which "mpicc"))
(setenv "CXX" (which "mpic++"))
#t
)
)
)
)
)
(propagated-inputs `(
("openmpi" ,openmpi)
))
(synopsis "OSU micro benchmarks")
(description "OSU micro benchmark for mpi")
(home-page "https://mvapich.cse.ohio-state.edu/benchmarks/")
(license license:gpl2+)
)
)