[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: gnu: xsimd-benchmark: Build example.
From: |
guix-commits |
Subject: |
02/08: gnu: xsimd-benchmark: Build example. |
Date: |
Wed, 14 Sep 2022 17:38:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ec883398f6e074195e3de0fccb95b5f594fefe89
Author: Greg Hogan <code@greghogan.com>
AuthorDate: Tue Sep 13 20:26:38 2022 +0000
gnu: xsimd-benchmark: Build example.
* gnu/packages/cpp.scm (xsimd-benchmark): Fix package name.
[arguments]<#:configure-flags>: Enable examples ...
<#:phases>{install} ... and install.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/cpp.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 8aea2e2441..6289c9520f 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -456,12 +456,12 @@ operating on batches.")
library for SIMD (Single Instruction, Multiple Data) with runtime dispatch.")
(license license:asl2.0)))
-(define-public xsmimd-benchmark
+(define-public xsimd-benchmark
(package
(inherit xsimd)
(name "xsimd-benchmark")
(arguments
- `(#:configure-flags (list "-DBUILD_BENCHMARK=ON")
+ `(#:configure-flags (list "-DBUILD_BENCHMARK=ON" "-DBUILD_EXAMPLES=ON")
#:tests? #f
#:phases (modify-phases %standard-phases
(add-after 'unpack 'remove-march=native
@@ -470,9 +470,11 @@ library for SIMD (Single Instruction, Multiple Data) with
runtime dispatch.")
(("-march=native") ""))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
- ;; Install nothing but the executable.
+ ;; Install nothing but the executables.
(let ((out (assoc-ref outputs "out")))
(install-file "benchmark/benchmark_xsimd"
+ (string-append out "/bin"))
+ (install-file "examples/mandelbrot"
(string-append out "/bin"))))))))
(synopsis "Benchmark of the xsimd library")
- branch master updated (883d4e0abf -> d9b7982ba5), guix-commits, 2022/09/14
- 01/08: gnu: xsimd: Update to 9.0.1., guix-commits, 2022/09/14
- 06/08: gnu: gnome-mines: Fix build., guix-commits, 2022/09/14
- 04/08: gnu: stunnel: Update to 5.66., guix-commits, 2022/09/14
- 05/08: gnu: mousepad: Fix build., guix-commits, 2022/09/14
- 07/08: gnu: podman: Install shell completions., guix-commits, 2022/09/14
- 08/08: gnu: go-ipfs: Install bash completion., guix-commits, 2022/09/14
- 03/08: gnu: rsync: Update to 3.2.6., guix-commits, 2022/09/14
- 02/08: gnu: xsimd-benchmark: Build example.,
guix-commits <=