[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/14: gnu: Add eigen-benchmarks.
From: |
guix-commits |
Subject: |
06/14: gnu: Add eigen-benchmarks. |
Date: |
Sat, 1 Jan 2022 09:57:13 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 6542e5713a38229f277021a0884cdb5bc7165575
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Dec 3 23:27:09 2021 +0100
gnu: Add eigen-benchmarks.
* gnu/packages/algebra.scm (eigen-benchmarks): New variable.
---
gnu/packages/algebra.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 79785bd463..e92ef4bf3f 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -1044,6 +1044,44 @@ features, and more.")
;; See 'COPYING.README' for details.
(license license:mpl2.0)))
+(define-public eigen-benchmarks
+ (package
+ (inherit eigen)
+ (name "eigen-benchmarks")
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'build
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (define (compile file)
+ (format #t "compiling '~a'...~%" file)
+ (let ((target
+ (string-append bin "/"
+ (basename file ".cpp"))))
+ (invoke "c++" "-o" target file
+ "-I" ".." "-O2" "-g"
+ "-lopenblas" "-Wl,--as-needed")))
+
+ (mkdir-p bin)
+ (with-directory-excursion "bench"
+ ;; There are more benchmarks, of varying quality.
+ ;; Here we pick some that appear to be useful.
+ (for-each compile
+ '("benchBlasGemm.cpp"
+ "benchCholesky.cpp"
+ ;;"benchEigenSolver.cpp"
+ "benchFFT.cpp"
+ "benchmark-blocking-sizes.cpp"))))))
+ (delete 'install))))
+ (inputs (list boost openblas))
+
+ ;; Mark as tunable to take advantage of SIMD code in Eigen.
+ (properties '((tunable? . #t)))
+
+ (synopsis "Micro-benchmarks of the Eigen linear algebra library")))
+
(define-public eigen-for-tensorflow
(let ((changeset "fd6845384b86")
(revision "1"))
- branch master updated (f39d594e88 -> 40662f7da8), guix-commits, 2022/01/01
- 01/14: Add (guix cpu)., guix-commits, 2022/01/01
- 05/14: ci: Add extra jobs for tunable packages., guix-commits, 2022/01/01
- 07/14: gnu: Add xsimd-benchmark., guix-commits, 2022/01/01
- 02/14: gnu: gcc: Add 'compiler-cpu-architectures' property., guix-commits, 2022/01/01
- 11/14: gnu: libfive: Mark as tunable., guix-commits, 2022/01/01
- 12/14: gnu: prusa-slicer: Mark as tunable., guix-commits, 2022/01/01
- 03/14: gnu: clang: Add 'compiler-cpu-architectures' property., guix-commits, 2022/01/01
- 04/14: transformations: Add '--tune'., guix-commits, 2022/01/01
- 08/14: gnu: Add xtensor-benchmark., guix-commits, 2022/01/01
- 06/14: gnu: Add eigen-benchmarks.,
guix-commits <=
- 09/14: gnu: ceres-solver: Mark as tunable., guix-commits, 2022/01/01
- 14/14: news: Add entry about '--tune'., guix-commits, 2022/01/01
- 10/14: gnu: Add ceres-solver-benchmarks., guix-commits, 2022/01/01
- 13/14: gnu: gsl: Add 'tunable?' property., guix-commits, 2022/01/01