From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0C+aAe9+u2HjCgAAgWs5BA (envelope-from ) for ; Thu, 16 Dec 2021 19:01:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EPTqOO5+u2GNOQAAB5/wlQ (envelope-from ) for ; Thu, 16 Dec 2021 18:01:18 +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 B6596F386 for ; Thu, 16 Dec 2021 19:01:18 +0100 (CET) Received: from localhost ([::1]:44088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxv49-0000zx-TY for larch@yhetil.org; Thu, 16 Dec 2021 13:01:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxv2y-0000Ly-Jy for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxv2y-0008EP-BC for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxv2y-0006oY-AH for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52283] [PATCH v2 08/12] 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: Thu, 16 Dec 2021 18:00: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.163967757026046 (code B ref 52283); Thu, 16 Dec 2021 18:00:04 +0000 Received: (at 52283) by debbugs.gnu.org; 16 Dec 2021 17:59:30 +0000 Received: from localhost ([127.0.0.1]:36708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxv2Q-0006lu-5e for submit@debbugs.gnu.org; Thu, 16 Dec 2021 12:59:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxv1p-0006i0-Ac for 52283@debbugs.gnu.org; Thu, 16 Dec 2021 12:58:53 -0500 Received: from [2001:470:142:3::e] (port=44374 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 1mxv1k-0007uC-10; Thu, 16 Dec 2021 12:58:48 -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=IbTzhDpHN0QtO7GQyDgmET4uA6RPaTiu8j267LQhM5Y=; b=VNNGnlPdtxQHTqp2M671 6OCK6hcNU8YCrTtl5g2FeGY+N+A4XQq0Oazjk/YrCrFHQxT5LYPk4CJnL4kBV9Y1imQivL2F6gEaB Rn8hwsyN0uZZjtZxMydtUX3XAu/RUucnP/MxttrlrYOF3fm04cMry1eOl6Lb5pLvFTgm42rsF77Bu qe96iqJ6v3Y9fbS7msWFQRxLvvu371Xjv5WUHZzfkxRbPyMOSBhg1lERBPucRLGW+sKnbtil4w/iL tPQ1zb5DFPebK9rB3YGDNJIGJqzHnxZT1ymfDc1zYRwhlzBvCyHlhJGdK2CQcCkQvTXK7z9lOhzG0 ogzCvA7KGXIpZA==; 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-Pd; Thu, 16 Dec 2021 12:58:47 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 16 Dec 2021 18:58:23 +0100 Message-Id: <20211216175827.2077-9-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 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=1639677678; 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=IbTzhDpHN0QtO7GQyDgmET4uA6RPaTiu8j267LQhM5Y=; b=Z1W+Ndp+X8IY/BZ1QX7/XphMRv8CzsCM2BwDV5MoDl6DsiNXeK5akQaHH61EbYzLhchOsk zqIG5McAS59zIOAHMMttiRFSSP1+w1suLHCup65fjmqasDNu/3n6ImrWCucEtuSJfK2X1P gJEFzFXBi5ZfanEudHEZhBG8ePZcT2SgaDtF7Odx+rKiiJ7S/S7hywl3uyWM/2HJwzuxdV YLpVO5on9747yQtEXYWTSWLzeFhQmgjXM8aeVwVVQqzk8qsqKhZFxRSH2seyV6qEU2uPle EztV3ULjYc6sy7F2ltwXkwhKCnYDHKH0GsP5zshxXQxwvpoKbxaMz7Yr/UZXhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639677678; a=rsa-sha256; cv=none; b=bBZ8TnZVy1K7Mmd6ThEsDF9pm0gUBDWFMe3qkwTi+VwcayWHPPxn7L4QSxPoZLnUxCMOo+ v8+ex3b+GzPfd3UHVeINyfT3yazHtipd0TFp5CB8n7qI1mwV3mgnTjQQ2N3cQsTp5wLSXk qgvVavoCIy9GOuWVrGNExdV3q/B14PXGz7GbDXj71Nl3kalchugrxMXgKqZEECIVChbaAF KVubi1JB15K7lH0PEU/dgk0IR5kL64EHUgnbkv96+lhCqi10xQuxD60zARChLc8Q0t9Ldw vBKU9+kd36Z0kr1RSSpJROlf6fwBgPSxmQBJq0hwr2FebXZ7xpCDHSyeEORNwg== 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=VNNGnlPd; 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.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VNNGnlPd; 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: B6596F386 X-Spam-Score: -2.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: sQiHacZsEgAY * gnu/packages/algebra.scm (xtensor-benchmark): New variable. --- gnu/packages/algebra.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index e92ef4bf3f..c129e0f4e0 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -1169,6 +1169,45 @@ (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 + (modify-inputs (package-native-inputs xtensor) + (prepend googlebenchmark xsimd))) + + ;; Mark as tunable to take advantage of SIMD code in xsimd/xtensor. + (properties '((tunable? . #t))))) + (define-public gap (package (name "gap") -- 2.33.0