From patchwork Thu Dec 16 17:58:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 35287 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3E67627BBEA; Thu, 16 Dec 2021 18:01:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0D2D627BBE9 for ; Thu, 16 Dec 2021 18:01:15 +0000 (GMT) Received: from localhost ([::1]:43932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxv46-0000tm-3N for patchwork@mira.cbaines.net; Thu, 16 Dec 2021 13:01:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxv2y-0000LN-8l for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxv2x-0008E9-Ve for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxv2x-0006oR-Su for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52283] [PATCH v2 07/12] gnu: Add xsimd-benchmark. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Dec 2021 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52283@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 52283-submit@debbugs.gnu.org id=B52283.163967757026037 (code B ref 52283); Thu, 16 Dec 2021 18:00:03 +0000 Received: (at 52283) by debbugs.gnu.org; 16 Dec 2021 17:59:30 +0000 Received: from localhost ([127.0.0.1]:36706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxv2P-0006ln-Tc for submit@debbugs.gnu.org; Thu, 16 Dec 2021 12:59:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxv1o-0006ht-Gy for 52283@debbugs.gnu.org; Thu, 16 Dec 2021 12:58:52 -0500 Received: from [2001:470:142:3::e] (port=44372 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxv1j-0007ty-6w; Thu, 16 Dec 2021 12:58:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=yMSFjWt0a17tktaO/Ghg6EPyWlrK/ME/DmoWyiVf4Zg=; b=ftIgDnawoPyjjRA2wX80 EwrAoX3nSq+kLGtYKV68alOc9F4yGmQ3bOpvE4dpUQKDvQ156TIxcfZKVZ8OxNc22yKua7PeGP4pZ l6XnjVLQbmExqRVGL4CrtcX8kLR4V6LAwdOQYm51Tlu1ySkDrFqoZXBUUIyDAaDgLcfjfC8JjCcEx oGy8S2hBQ5GX2d6MHC9+dr4u8LcKmOyN2R6ozH8n2EiMj3yt6Arfd3sHgTAveGh67cj/bievwNro5 KuoYSxDkGdw1AsYZqE9Q4oDheKCNo0gt7Ffqkit9ieTx9ZQob/ldytFaGXm1ON0HOzQHrqSEFuEQd JfX4JQKUnPXRsg==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42202 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxv1j-0000YX-6I; Thu, 16 Dec 2021 12:58:47 -0500 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Thu, 16 Dec 2021 18:58:22 +0100 Message-Id: <20211216175827.2077-8-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211216175827.2077-1-ludo@gnu.org> References: <87lf0wkcam.fsf@gnu.org> <20211216175827.2077-1-ludo@gnu.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (xsmimd-benchmark): New variable. --- gnu/packages/cpp.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 718fb20652..da26a4e346 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -300,6 +300,29 @@ (define-public xsimd operating on batches.") (license license:bsd-3))) +(define-public xsmimd-benchmark + (package + (inherit xsimd) + (name "xsimd-benchmark") + (arguments + `(#:configure-flags (list "-DBUILD_BENCHMARK=ON") + #:tests? #f + #:phases (modify-phases %standard-phases + (add-after 'unpack 'remove-march=native + (lambda _ + (substitute* "benchmark/CMakeLists.txt" + (("-march=native") "")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + ;; Install nothing but the executable. + (let ((out (assoc-ref outputs "out"))) + (install-file "benchmark/benchmark_xsimd" + (string-append out "/bin")))))))) + (synopsis "Benchmark of the xsimd library") + + ;; Mark as tunable to take advantage of SIMD code in xsimd/xtensor. + (properties '((tunable? . #t))))) + (define-public chaiscript (package (name "chaiscript")