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 2GjzIKjZq2FGAwAAgWs5BA (envelope-from ) for ; Sat, 04 Dec 2021 22:12:08 +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 +JC+HKjZq2EDYAAA1q6Kng (envelope-from ) for ; Sat, 04 Dec 2021 21:12:08 +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 4907942F2 for ; Sat, 4 Dec 2021 22:12:08 +0100 (CET) Received: from localhost ([::1]:51572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtcKF-0000Hn-H7 for larch@yhetil.org; Sat, 04 Dec 2021 16:12:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtcKB-0000FU-6p for guix-patches@gnu.org; Sat, 04 Dec 2021 16:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtcKA-00032j-VB for guix-patches@gnu.org; Sat, 04 Dec 2021 16:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtcKA-0006Pl-QP for guix-patches@gnu.org; Sat, 04 Dec 2021 16:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52283] [PATCH 00/10] Tuning packages for CPU micro-architectures 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 21:12:02 +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 Received: via spool by 52283-submit@debbugs.gnu.org id=B52283.163865232024633 (code B ref 52283); Sat, 04 Dec 2021 21:12:02 +0000 Received: (at 52283) by debbugs.gnu.org; 4 Dec 2021 21:12:00 +0000 Received: from localhost ([127.0.0.1]:55311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcK8-0006PF-23 for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:12:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcK6-0006Ou-4s for 52283@debbugs.gnu.org; Sat, 04 Dec 2021 16:11:58 -0500 Received: from [2001:470:142:3::e] (port=46456 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 1mtcK1-0002Fy-0E for 52283@debbugs.gnu.org; Sat, 04 Dec 2021 16:11:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=NAYJg4MR+CNhXK3BYZcozruAU/2LsLcMRPG5TyMLlZc=; b=jW5ppaD1fwCzWTKZFcNN CfBSVSDWCv+6Pm5bMZQTbGtncYMmnzEpLab9wuH1kEdaqUKii+fJY/Mo/daG5E3A64iHsh3Sj5/Ue Tzy8dRH8D0CsUojtVY5J+sqc7c/w3r6sLikKoysI8VhNCdvTN1Jf2N+0Mj++CfJ1vsXDc2kw90R9+ Fcovs71ueYNnaw2MM40FWJ5Fe/RIQLN9cn6SdkolGdfmggpRysBWU6xmMxYE0TVn6Mwu8Yr9l79rw 1+BZCeb82moMyJWRKuOnNlJIAHHGrFwJEicMzLx80B/zL7DvlZojBLm9IvEVP1LjkNnjAgenuo+0E iMXVp4l8+lKZXA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53746 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtcK0-0006Ug-ON for 52283@debbugs.gnu.org; Sat, 04 Dec 2021 16:11:52 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211204203447.15200-1-ludo@gnu.org> Date: Sat, 04 Dec 2021 22:11:49 +0100 In-Reply-To: <20211204203447.15200-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 4 Dec 2021 21:34:47 +0100") Message-ID: <87tufoulbe.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1638652328; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=NAYJg4MR+CNhXK3BYZcozruAU/2LsLcMRPG5TyMLlZc=; b=DGS2ga4y7k/VnVWGbyvs4LpGZZpDPZERP5SfaCj/pJP9OTXrajEgvapImZZlDKEtzFKoU1 n+tMnJCHzVk2CEhdFSNoZcyP39fYjN7S+T2VMPVUj9WubbQcGRg4rQU7+QpMp5Aky4btpw g3QNEpvMuQcr/mXpnBfOPDKwyNHeF5MJTy2HtjLqMiSKGBEE+RTW3swyRjhk96FekPRKIy DqMUWQte5GgD6vCBXYOG3jmMfjE3EW1LGJY5Olzup0DLUDd+nkIaQa4ARAbCXK+ypDRGnO oVp8e62foKJxMu4qpEfazLjqGcmk4wA7O8sE7d7C3hDTUUXM1a/YGH5zGoTJiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638652328; a=rsa-sha256; cv=none; b=fwZ34/m3mz1UMNDhpsIqGhVsHq0vqoeZlB2jrvWx8Qrbh6LC5oou9pNo4Kq3svioZtf5hc Pi05gu/QnMryNW/KI5/6jpVgekfQYvQ3U6D8TMTdu3QBNFD/Be0hSjqH4Ygmqw62T+C0x2 TuGblz7X7Vg1o8wE1dfxV4gLmTeJ3GI9GcH1FeW/HN8iaETQxhmIVz4gMVjD1NBH9HCveV rt8GVXltcVIY7ufWRfSPA8PpQW9KPp7AbUNEFh9XU0G3mWiCNHtM5gYaGI6ShR2yHZDK0D hEQgrACu3tIn8Ww6H5dUT+Wmid+xyqEbYlC+e9WnazZ2ITD/fvN6negVhdxscg== 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=jW5ppaD1; 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: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jW5ppaD1; 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: 4907942F2 X-Spam-Score: -3.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: OrWM9WBSVwG0 Ludovic Court=C3=A8s skribis: > This is achieved not by passing =E2=80=98-march=3Dnative=E2=80=99, becaus= e the daemon > might be running on a separate machine with a different CPU, but by > identifying the =E2=80=98-march=E2=80=99 value corresponding to the host = CPU and > passing =E2=80=98-march=E2=80=99 to the compiler, via a wrapper. Another argument in favor of this approach is verifiability, because manifests record the argument to the =E2=80=98tune=E2=80=99 transformation = option: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix shell eigen-benchmarks --tune guix shell: tuning for CPU micro-architecture skylake [env]$ guix package --export-manifest -p $GUIX_ENVIRONMENT ;; This "manifest" file can be passed to 'guix package -m' to reproduce ;; the content of your profile. This is "symbolic": it only specifies ;; package names. To reproduce the exact same profile, you also need to ;; capture the channels being used, as returned by "guix describe". ;; See the "Replicating Guix" section in the manual. (use-modules (guix transformations)) (define transform1 (options->transformation '((tune . "skylake")))) (packages->manifest (list (transform1 (specification->package "eigen-benchmarks")))) --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.