From: Greg Hogan <code@greghogan.com>
To: 57780@debbugs.gnu.org
Cc: Greg Hogan <code@greghogan.com>
Subject: [bug#57780] [PATCH 2/2] gnu: xsimd-benchmark: Build example.
Date: Tue, 13 Sep 2022 20:26:38 +0000 [thread overview]
Message-ID: <1ac1d30c696807ac8a5481cf0fa2a2931e00974a.1663082562.git.code@greghogan.com> (raw)
In-Reply-To: <cover.1663082562.git.code@greghogan.com>
* gnu/packages/cpp.scm (xsimd-benchmark): Fix package name.
[arguments]<#:configure-flags>: Enable examples ...
<#:phases>{install} ... and install.
---
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 @@ (define-public google-highway
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 @@ (define-public xsmimd-benchmark
(("-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")
--
2.37.3
prev parent reply other threads:[~2022-09-13 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1663082562.git.code@greghogan.com>
2022-09-13 20:26 ` [bug#57780] [PATCH 1/2] gnu: xsimd: Update to 9.0.1 Greg Hogan
2022-09-13 20:26 ` Greg Hogan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ac1d30c696807ac8a5481cf0fa2a2931e00974a.1663082562.git.code@greghogan.com \
--to=code@greghogan.com \
--cc=57780@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).