From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cEhYK9V+u2HwBgAAgWs5BA (envelope-from ) for ; Thu, 16 Dec 2021 19:00:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sCknJ9V+u2FpEQAA1q6Kng (envelope-from ) for ; Thu, 16 Dec 2021 18:00:53 +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 3F418F84A for ; Thu, 16 Dec 2021 19:00:53 +0100 (CET) Received: from localhost ([::1]:43932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxv3j-0000tm-Df for larch@yhetil.org; Thu, 16 Dec 2021 13:00:52 -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 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=1639677653; 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=yMSFjWt0a17tktaO/Ghg6EPyWlrK/ME/DmoWyiVf4Zg=; b=RoYOmQs+qxsKUj9g3YzeratoJQB+ZDh2Q9tjJM7kOBOpXypi6nfo1JRebPJOwAyvABA0Pd gWYXqa4bije1jwKL+TLH/gfukvww11OZcM6QZ0bETUV88HbFWV9RBrs0lR2wsjgxvcLnOe rLdrYb4vWyPm+3O0i2OkdQfwiZC13GoAXVOsiA4QcrGMsyFbWRAgLG+WezstWfuW9PHZ3N fyqIvDXwec2t/nBKkJPBnJDsJaRVzeO9k1bHAkGWjmT53eap5+pyCI3ZPEcGSuFqoMZL+6 IOn8UPFzsZtyLYZDkbu9PTWjwi4quchY/AlwRpjWtITIFB18urBdl9iwu0/siw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639677653; a=rsa-sha256; cv=none; b=rQYmYxyGmhL0IFjZUw6ndaVPXpDWRwPxDbpUIigHAteWgQE/FZDh9A4XxAMtJf2DTG012c eLgQf+f5Coo0YVeianGLuAQa8LgNMzUshs9sAJNdUCn4pOXLPbX43T/WCfQMUkGp4GfogB rtExSGje0EQJVwMQi3/zRTair8AI2U1lrP+pcTA8qUqU/icKQ/ozlyKjqveey5MUq/eyma uQXLOAnITMngzpSTPwRqYfbcFSCSEGN4Q8frPlxsqjBnNU1FvfEIhuZl+u5WJgrdt4j7l9 TG616vFBxsxw6PhJlN1onvJQ6gOMbQmDtkSH2RcXW/uCyk0uKuYaSGwsNsnOiw== 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=ftIgDnaw; 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=ftIgDnaw; 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: 3F418F84A X-Spam-Score: -2.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: zgmd5aSPCsMI * 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") -- 2.33.0