From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AG47AVPHgGUONAEAkFu2QA (envelope-from ) for ; Mon, 18 Dec 2023 23:27:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kKKRNlLHgGUFegEAe85BDQ (envelope-from ) for ; Mon, 18 Dec 2023 23:27:31 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=oCMKsM7+; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702938450; 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=dRpc9WKDt2R8XjHaoQdj/w0eJkxRswbSatbql1Mf7/Q=; b=XWZCtsMnu04GbXgTIzXkZAO6hg4AmgcDmGFJEiXdUMMomSJLUAnomiRRtv8MSDAiGgA6Q8 L6WyUViJsL2A5+qZ0Cn4g9571o+PGSsujrJY+kAsmr1Mt15UfsXeviL6TyvWqrfacwaCAH mrRfWfYmpl0lwY+siBjQbsu7F8SVIn8mXoSRFjkGS3bRwBjxZiZd2qKHroCCpYaSIxCfo3 8liKF6NfBT2vtw1jjM6md6dC5CUjzdKGIvazBudkTpQnBnbd75YUzXh4XMNuB4u3oSuWRl ENAjyrrUzoSwzl4FPMjs1vu3qS1Q3OaiEqFZxo9T9KMSmpGYuw7q4BBsxHyABA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702938450; a=rsa-sha256; cv=none; b=oJqMYXVGIbN0pNiJ2q8dUrZaNzW4fOp+dLsWkerWGL7m6P4cu0ma+qCaBwYxCF2BwYBzBd ElTHC1X3UyJ0IPlqSxKaxdnsMwWg2XgidGyBMm0qjyOUtANiECWJ0dAwMpwokcwrXPL+gz kLSdpiw0cA0noStwVFCRVKAY17rSjEvMVI/wgkwMEuJFUZ76AE0klKGfHyJg6CXDhTFwbn DaYFi6HaySmxI7YkrlPfXJxhxVgYOL4zhFMNgWLyz7ceR+RH6jVuS7SUH/gJ5WIN7kluii jeNMUf/H1QT8q5cLLKu/vsSFDh4za1PI1unLJoZmbHzM8DRcY2WS/E/MrBf7IA== 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=oCMKsM7+; 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"; dmarc=pass (policy=none) header.from=gnu.org 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 6A02160B4F for ; Mon, 18 Dec 2023 23:27:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rFM4j-0003fb-Rn; Mon, 18 Dec 2023 17:27:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rFM4i-0003eZ-9s for guix-patches@gnu.org; Mon, 18 Dec 2023 17:27:00 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rFM4h-0001DU-WF for guix-patches@gnu.org; Mon, 18 Dec 2023 17:27:00 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rFM4j-0006DN-Lf for guix-patches@gnu.org; Mon, 18 Dec 2023 17:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67742] [PATCH] gnu: ci: Build tuned packages for common baselines. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Dec 2023 22:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67742 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67742@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170293839923826 (code B ref -1); Mon, 18 Dec 2023 22:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2023 22:26:39 +0000 Received: from localhost ([127.0.0.1]:33747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFM4M-0006CB-SH for submit@debbugs.gnu.org; Mon, 18 Dec 2023 17:26:39 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFM4K-0006Bu-Jh for submit@debbugs.gnu.org; Mon, 18 Dec 2023 17:26:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rFM4C-0003c0-I6 for guix-patches@gnu.org; Mon, 18 Dec 2023 17:26:28 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rFM4C-0001CK-A1 for guix-patches@gnu.org; Mon, 18 Dec 2023 17:26:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=dRpc9WKDt2R8XjHaoQdj/w0eJkxRswbSatbql1Mf7/Q=; b=oCMKsM7+oL0MXaTMQ2Bd 8pZrusGD41pC1HNCw2qsbF2M5Omz8L4czEcUCm0tKXNmfqvqbRrS1twtfNQxownTSQRNE/eBe0sQV /duzrmUzSaMn0+YqEN43ykmzz78/MCcCiW0Fo2b+bPnmeFoQKyQRjxOOs1zglt6YPEcWPO2C+bS5n xtGyGu3hVSB1x6DDrvluEowWdH7JyVoeDVFu/oQuHcCkxA2fKlQtVOV6wa3SCCwU0zFxpRq4IQWoe mYz4Da6ylH9nVfa5/TfhmrTFtUIItDWK+iPMeZ/6IJlnWux4AC4EuS/p3C9L/bBSKmBZuLOU/bTYu AolfvDnomcqQ9w==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Efraim Flashner's message of "Tue, 12 Dec 2023 13:27:19 +0200") References: <7c09a597a23276e1987898022ff7f0e145c9fd8a.1702194739.git.efraim@flashner.co.il> <87y1e02zft.fsf@chbouib.org> Date: Mon, 18 Dec 2023 23:26:25 +0100 Message-ID: <87zfy7i1v2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.92 X-Spam-Score: -6.92 X-Migadu-Queue-Id: 6A02160B4F X-Migadu-Scanner: mx12.migadu.com X-TUID: zy9aUgP1Fnnn Hello, Efraim Flashner skribis: > On Mon, Dec 11, 2023 at 10:37:26PM +0100, Ludovic Court=C3=A8s wrote: [...] >> > (define %x86-64-micro-architectures >> > ;; Micro-architectures for which we build tuned variants. >> > - '("westmere" "ivybridge" "haswell" "skylake" "skylake-avx512")) >> > + '("x86-64-v2" "x86-64-v3" "x86-64-v4")) >>=20 >> Right now, on my laptop, I get: >>=20 >> --8<---------------cut here---------------start------------->8--- >> $ guix build gsl -n --tune >> guix build: tuning gsl@2.7.1 for CPU skylake [...] > I'm not sure how we'd determine what would count as common. I think if > we added a '--tune=3Dclose-enough' and used cpu->micro-architecture-level > or gcc-architecture->micro-architecture-level from (guix cpu) to choose > x86_64-v[234] that would count more as common than the list above :P. Sure, but that=E2=80=99s not the case yet: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build gsl --tune -n=20 guix build: tuning gsl@2.7.1 for CPU skylake 1.5 MB would be downloaded: /gnu/store/kx060kry6ka7khzganfcqk98agqp226i-gsl-2.7.1 --8<---------------cut here---------------end--------------->8--- So my suggestion was something like this: (define %x86-64-micro-architectures ;; Micro-architectures for which we build tuned variants. '("ivybridge" "haswell" "skylake" "skylake-avx512" "x86-64-v2" "x86-64-v3" "x86-64-v4")) =E2=80=A6 so we don=E2=80=99t lose substitutes for =E2=80=9Ccommon=E2=80=9D= architectures. Alternatively, we can go towards using x86-64-v* only, but in that case we need to adjust the way =E2=80=98--tune=E2=80=99 (without arguments) gues= ses the target architecture. WDYT? Ludo=E2=80=99.