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 8OMoJrF+u2HwBgAAgWs5BA (envelope-from ) for ; Thu, 16 Dec 2021 19:00:17 +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 IEDdIbF+u2HJOAAAB5/wlQ (envelope-from ) for ; Thu, 16 Dec 2021 18:00:17 +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 5C7C0F214 for ; Thu, 16 Dec 2021 19:00:17 +0100 (CET) Received: from localhost ([::1]:43236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxv3A-0000M1-Bs for larch@yhetil.org; Thu, 16 Dec 2021 13:00:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxv2x-0000Ko-Px for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxv2x-0008Dt-GQ 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-0006oJ-FW for guix-patches@gnu.org; Thu, 16 Dec 2021 13:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52283] [PATCH v2 06/12] gnu: Add eigen-benchmarks. 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.163967756926030 (code B ref 52283); Thu, 16 Dec 2021 18:00:03 +0000 Received: (at 52283) by debbugs.gnu.org; 16 Dec 2021 17:59:29 +0000 Received: from localhost ([127.0.0.1]:36700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxv2B-0006lI-7Y for submit@debbugs.gnu.org; Thu, 16 Dec 2021 12:59:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxv1n-0006hs-Tc for 52283@debbugs.gnu.org; Thu, 16 Dec 2021 12:58:52 -0500 Received: from [2001:470:142:3::e] (port=44370 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 1mxv1i-0007tl-Jd; Thu, 16 Dec 2021 12:58:46 -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=a/87rTX3i21SX5TarF3RqNqUIj/uyM5qeiQOTlxu2AI=; b=M6xu06Boof8Ma4i0xPvQ crN9lsppx69Y44/XllLDxBpEKQ2xYr6J/GgZaoRTeJiIDVMXxL0ZGDMFaI8ABJVKgAVJHdpYvePir h7RSsnDU5mqHZQ0xnbDp0lQ6SkDc9cIxN7AJ2+nejOpycWo2Sz1i8T1yq1pYRytVVQmFAN4yTYT2i aab4CagjLXixO7hmQYD6jJyyY8YBzV17aRy6v0UuCgWc33IQRzTQZ15gr+9R820Z8Cl+tzLbabT06 n3ZuvMT5SnfKzpv4LjSZM05WsUq4UTEEJlx9PzfkwoURmEzWw1EwRMOED5G+ocmihkhtd3w1ZipZm e8t+KzwysVxSDQ==; 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 1mxv1h-0000YX-SZ; Thu, 16 Dec 2021 12:58:46 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 16 Dec 2021 18:58:21 +0100 Message-Id: <20211216175827.2077-7-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=1639677617; 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=a/87rTX3i21SX5TarF3RqNqUIj/uyM5qeiQOTlxu2AI=; b=ZUVHYCKzXuLpmNTrcJ3nRfu4t3hO+yZsbEF4hwaZYekqAJN+Bde9OMjB82iQ878ralHXqs 7SbE0kDUe3/oZ1t03xJduSqlIvcMu2rUy9a+aa8lBq2mEYUkmVMFxCPTnQCtsjOmsslo/B cTOy0qRuT0MiTvox29irWd4PvR92xBrYGWVYTV001kMmCxvqaHmZchR5UF1ZtxL3ADtpOv y85su7771bUVbpNx5xfK7lP/59YE4+T8bvK4oiOTyNIYIDsDtTXejpI1amdKoxjFDQsTwI gbFcIcE2BK7Bk/hnheK/iwgYRnk1uMmrJaVsVUbz8miW0az1lAY+62B4FRwtXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639677617; a=rsa-sha256; cv=none; b=CBuNoOwB5h/lYuud1VbKmJXxf7wKF5QNxiRP5NYIAjBW76IkIixw9GebM5iZYgUTIOBVHg Rlyq+Sdhq+m/IJ08kIv0URjqPXzedgJ+am06VsvyQ5SHj+94yd56QZkpKmt1yzhmju3PIg nkezpeTLnT1GYR3uIKETyzuAJGAaHQDBx/2Dm9kS+geukemjC4dMMMiM+xG8C4oOJZnCug AwVrj99oaodrIIg/hztAtwf0Im+ZpWJYQtA+yuORvFgUaiW4ICgVwpKazY65ovH92TUgCV sQ8AAgxCVk+eedBO/TCarFTQyxkxaaVKkw3TVxvbMuyyrQyru5fT7PpajIaINw== 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=M6xu06Bo; 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=M6xu06Bo; 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: 5C7C0F214 X-Spam-Score: -2.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7F702LzA+Ab0 * gnu/packages/algebra.scm (eigen-benchmarks): New variable. --- gnu/packages/algebra.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 79785bd463..e92ef4bf3f 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -1044,6 +1044,44 @@ (define-public eigen ;; See 'COPYING.README' for details. (license license:mpl2.0))) +(define-public eigen-benchmarks + (package + (inherit eigen) + (name "eigen-benchmarks") + (arguments + '(#:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (define (compile file) + (format #t "compiling '~a'...~%" file) + (let ((target + (string-append bin "/" + (basename file ".cpp")))) + (invoke "c++" "-o" target file + "-I" ".." "-O2" "-g" + "-lopenblas" "-Wl,--as-needed"))) + + (mkdir-p bin) + (with-directory-excursion "bench" + ;; There are more benchmarks, of varying quality. + ;; Here we pick some that appear to be useful. + (for-each compile + '("benchBlasGemm.cpp" + "benchCholesky.cpp" + ;;"benchEigenSolver.cpp" + "benchFFT.cpp" + "benchmark-blocking-sizes.cpp")))))) + (delete 'install)))) + (inputs (list boost openblas)) + + ;; Mark as tunable to take advantage of SIMD code in Eigen. + (properties '((tunable? . #t))) + + (synopsis "Micro-benchmarks of the Eigen linear algebra library"))) + (define-public eigen-for-tensorflow (let ((changeset "fd6845384b86") (revision "1")) -- 2.33.0