From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IK2vN4/Uq2EOcwEAgWs5BA (envelope-from ) for ; Sat, 04 Dec 2021 21:50:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EHNiM4/Uq2FPcAAAB5/wlQ (envelope-from ) for ; Sat, 04 Dec 2021 20:50:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9FA37B3F3 for ; Sat, 4 Dec 2021 21:50:23 +0100 (CET) Received: from localhost ([::1]:38076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtbzC-0006VY-Pn for larch@yhetil.org; Sat, 04 Dec 2021 15:50:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtbyu-0005tD-Ea for guix-patches@gnu.org; Sat, 04 Dec 2021 15:50:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtbyu-0001kr-5j for guix-patches@gnu.org; Sat, 04 Dec 2021 15:50:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtbyu-0003cO-53 for guix-patches@gnu.org; Sat, 04 Dec 2021 15:50:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52283] [PATCH 06/10] gnu: Add xtensor-benchmark. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Dec 2021 20:50:04 +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.163865099013822 (code B ref 52283); Sat, 04 Dec 2021 20:50:04 +0000 Received: (at 52283) by debbugs.gnu.org; 4 Dec 2021 20:49:50 +0000 Received: from localhost ([127.0.0.1]:55221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbyg-0003an-6B for submit@debbugs.gnu.org; Sat, 04 Dec 2021 15:49:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtbyc-0003ZD-Ka for 52283@debbugs.gnu.org; Sat, 04 Dec 2021 15:49:46 -0500 Received: from [2001:470:142:3::e] (port=45338 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 1mtbyX-0001gw-Bg; Sat, 04 Dec 2021 15:49:41 -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=BArU7FarHvTt8z9d36WkNG880pTmzDUSFK3bGEdv4qc=; b=nX9GIQ+U5TRHTL2km1SM mTQncdTyGTRnqOfXZf97CFmQzYmXpCBvhSoiDgv7wVVLdzIyEpy+Zyjms0M8AhCpO/1OE0MBcHL6b mN255j4iC6m104O035MVwPiu8xYDZOx1WpgSpIm9eBlNMAmKlj0Wr0UiUhyRIuXlGXxJ1i8dCrihC 265RuOPr8TIl207ZqZzWDXXrtguwt9y1eptkJnUOaX/ueRIt4MMziNhcJIn4ihma6bYQLJ1ypx9VF JYsileFBd2rJRXFH2J+D4xh8jdAUcYQRBVPaAR/IgCtve7bc+d6ZEZ+z+nyNzmeSb3prCXSwfQJ2r ExHBw3g0xRhEag==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45592 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 1mtbyX-00059z-8Z; Sat, 04 Dec 2021 15:49:41 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 4 Dec 2021 21:49:20 +0100 Message-Id: <20211204204924.15581-6-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211204204924.15581-1-ludo@gnu.org> References: <20211204204924.15581-1-ludo@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638651023; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BArU7FarHvTt8z9d36WkNG880pTmzDUSFK3bGEdv4qc=; b=lG9xdkTm2HsRHiSYIR/FbftkF2YjEjjyteU7+A0ku7S+2QYNh0m+kGTcoK+JT4VD6Ny4ew q0/utb3u5na2re8rAtlAhwAiiCx1Ff3GwTQ7Ng7ahUJolh/se2902j/FcAAunr74k0AFX+ cerbVZAWxwI+GhMizpJbyEiXJ3imBxzbG2ZiF0dDD1RPmEkFeCZ/PdnUG7GiRJ7y4Cu7zB 5N7g9HZFE6CEr55I5ClNTGNqECaCVr4RR82Jth3xB6JaBuvrHlNfuc8+mjL8VzbrlVgACL K8yMrmqhciHTkDvluV397RPXbSQ5evWpeogZQt9SK23WC147SFRMIQRHq+bjgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638651023; a=rsa-sha256; cv=none; b=uB55kBdiX8i5LWw8PsfP08x/AM03O8Il3JXivRVAaM1fAdl8aBdRVBYdIl9V9oStojMg25 tQwYXMXqsqv+jhBzZ9/KOzAcHZP/hB/rO/kY54iqvnwkBjy7d0kPiYhDsZXQVv+U+FzQao tg90BMZkbZ9NogmEHoZe13YjO9tbcmOYDEV6zrAnHIAaK11fPdIAcVsRWNCbRcA1+MsvnQ Di5vnYKX5PusqwRCmNr3awOlHZIaJW0AL/z3iKbKFEPDnjb6fvkThthFJz3EyMmUxqW2Nm XT0ynseTPnTGNp+3+zuNsr/A8MHSZWHZujbGYCrUxYesj44p/IlRK078duxDLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nX9GIQ+U; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nX9GIQ+U; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9FA37B3F3 X-Spam-Score: -2.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: Gk2Bkzx+gqKS * gnu/packages/algebra.scm (xtensor-benchmark): New variable. --- gnu/packages/algebra.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index a782f8b1be..4e3f8298a2 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -1200,6 +1200,46 @@ (define-public xtensor @end itemize") (license license:bsd-3))) +(define-public xtensor-benchmark + (package + (inherit xtensor) + (name "xtensor-benchmark") + (arguments + `(#:configure-flags (list "-DBUILD_BENCHMARK=ON" + "-DDOWNLOAD_GBENCHMARK=OFF") + #:tests? #f + #:phases (modify-phases %standard-phases + (add-after 'unpack 'remove-march=native + (lambda _ + (substitute* "benchmark/CMakeLists.txt" + (("-march=native") "")))) + (add-after 'unpack 'link-with-googlebenchmark + (lambda _ + (substitute* "benchmark/CMakeLists.txt" + (("find_package\\(benchmark.*" all) + (string-append + all "\n" + "set(GBENCHMARK_LIBRARIES benchmark)\n"))))) + (replace 'build + (lambda _ + (invoke "make" "benchmark_xtensor" "-j" + (number->string (parallel-job-count))))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + ;; Install nothing but the executable. + (let ((out (assoc-ref outputs "out"))) + (install-file "benchmark/benchmark_xtensor" + (string-append out "/bin")))))))) + (synopsis "Benchmarks of the xtensor library") + (native-inputs '()) + (inputs + `(("googlebenchmark" ,googlebenchmark) + ("xsimd" ,xsimd) + ,@(package-native-inputs xtensor))) + + ;; Mark as tunable to take advantage of SIMD code in xsimd/xtensor. + (properties '((tunable? . #t))))) + (define-public gap (package (name "gap") -- 2.33.0