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 OOcGDF3KsWHbHQAAgWs5BA (envelope-from ) for ; Thu, 09 Dec 2021 10:20:29 +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 AAbPB13KsWF4AgAA1q6Kng (envelope-from ) for ; Thu, 09 Dec 2021 09:20:29 +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 B28422DA51 for ; Thu, 9 Dec 2021 10:20:28 +0100 (CET) Received: from localhost ([::1]:48658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvFbH-0005dk-Op for larch@yhetil.org; Thu, 09 Dec 2021 04:20:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvFas-0005cp-8e for guix-patches@gnu.org; Thu, 09 Dec 2021 04:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvFas-0004iP-0F for guix-patches@gnu.org; Thu, 09 Dec 2021 04:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvFar-0000IH-QV for guix-patches@gnu.org; Thu, 09 Dec 2021 04:20:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52283] [PATCH 02/10] transformations: Add '--tune'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Dec 2021 09:20:01 +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: zimoun Cc: 52283@debbugs.gnu.org, Thiago Jung Bauermann Received: via spool by 52283-submit@debbugs.gnu.org id=B52283.16390415551069 (code B ref 52283); Thu, 09 Dec 2021 09:20:01 +0000 Received: (at 52283) by debbugs.gnu.org; 9 Dec 2021 09:19:15 +0000 Received: from localhost ([127.0.0.1]:42435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvFa7-0000HB-7A for submit@debbugs.gnu.org; Thu, 09 Dec 2021 04:19:15 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:43604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvFa5-0000Gx-0d for 52283@debbugs.gnu.org; Thu, 09 Dec 2021 04:19:13 -0500 IronPort-Data: A9a23:LU5IDamQ+0J/hvzkDf0UDl3o5gxMJERdPkR7XQ2eYbTBsI5bpzYPy2MYUWjVPPaPZWr0f40ib9ni/E0CuZWBx4VlT1A9+CA2RRqmi+KVXIXDdh+Y0wC6d5CYEho/t63yUjRxRSwNZie0SiyFb/6x/RGQ6YnSHuClUbSca3grLeNZYHxJZSxLyrdRbrFA0YDR7zOl4bsekuWHULOX82Yc3lE8t8pvnChSUMHa41v0iLCRicdj5zcyn1FNZH4WyDrYw3HQGuG4FcbiLwrPIS3Qw4/Xw/stIovNfrfTaEwASLnUVeSMoiMHAO7/2l4b/3R0i/xjXBYfQR4/ZzGhm819z8tMvtq7ThozIqDXsOUbSRhRVS9kVUFD0O6ZfSHn7537I0ruNiGEL+9VJBxsZ91D0up6C2tT+udeJzYQKBeZiIqeyrumR/Npj8IlBMrsOIoVvHZ/izreCJ4OU5HGRKOM+dhFwDAtgM1mEvPXZs5fYj1qBCksyTUn1kw/UcNl2rrwwCCmK3sB8gr9mEb+2ECLpCQZ7VQnGIC9lgS2ePho IronPort-HdrOrdr: A9a23:DbJcBan7wd9YwTRBV4X/WMp1dWzpDfIf3DAbv31ZSRFFG/Fwwfre5cjztCWE7Qr4Ohkb8+xoXZPsfZqyz/JICOUqUotKPzOW2ldATrsD0WK4+UyHJ8SWzIc0vpuIFZIRNDSaNykYsS+V2miF+3lL+qj+zEgF792uq0uE7GtRGsZd0zs= X-IronPort-AV: E=Sophos;i="5.88,192,1635199200"; d="scan'208";a="9641069" Received: from unknown (HELO ribbon) ([193.50.110.120]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2021 10:19:07 +0100 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211204204924.15581-1-ludo@gnu.org> <20211204204924.15581-2-ludo@gnu.org> <7364829.rrRS6mQaNJ@popigai> <871r2olu1j.fsf@inria.fr> <875ys0jwlf.fsf@inria.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 Frimaire an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 09 Dec 2021 10:19:06 +0100 In-Reply-To: (zimoun's message of "Tue, 7 Dec 2021 16:52:31 +0100") Message-ID: <8735n2gmph.fsf@inria.fr> 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639041628; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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; bh=VjZq6TrVKfR7X5JjjQWKpw5TSc1q1TouZ9ya/yhUNVQ=; b=YxlxLEOdlMJyz8LLJkKYaX05Orgc646oDzioFPU1RPHt0XpXDVf5OCDLXgPYh6QxPmFeZr Pb2G3z1PqvxEennb5IYwcLvJ2Q/+rk0Hmvc47sSFv+rab3TViXVSM7MBBQdff3qliCILYl CIzW301ZtSA/JnlfGMoH4aUf1XO5JykONGn1SSHhVz3zkewURT3QZGnhq7Otq2UZZlzsdn iUo7TRoY42lFo3a7hLm35K6PL5FYOLgdMUD8AUgBbX/BghD7XwZ2KP5uTRfMaHU6s5BMRn QSc1Z7AkUNCmn1ccrOw4yvADs86QkqwbPTgYsCmRd24jku5jIHdzluq13YKS9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639041628; a=rsa-sha256; cv=none; b=huQyqI7wS6bmhB4yyPF53MCFKDjSJhdzFUVhX9FlhcCheedYTRlDUztpQQmkDByhs7Z79o G7VmihOnmNbH/kt2bQolqE7IJ1/2ywn1EcbZuOea6AqqCSgG+mK0m0ZpoAbQ3LpbQ888zN w8SsBgc8qlW2g1VbrxcEDZi3Vd7cLS1ZSra9Fh2MBeQFZS4LtX+h9vxu7IUMPMcK1T/FH1 sAS/5amMfubPyl09hRtw/WI+nzzcZJzl7bs6KTFmglIvSuGJM/iLzDmAIkj2TslaeXutVe kITPt9pCVsuKKbHWakVVOm5Qq3VSXS6Qeo9Eh0AkFsr5fRk3ylELRVXDPTW6gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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.15 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: B28422DA51 X-Spam-Score: -3.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: NYY7Uwcl7H5t zimoun skribis: > On Tue, 7 Dec 2021 at 15:52, Ludovic Court=C3=A8s wrote: >> zimoun skribis: [...] >> > I miss if the test suite is effectively run somewhere? >> >> Yes, for the default/generic/baseline package, when not using =E2=80=98-= -tune=E2=80=99. > > Assuming, the default/generic/baseline package is effectively built. :-) > > I imagine the scenario: I develop a new simulation tool, I package it > for Guix, I share it; usually I run "guix shell -D" and do loop over > "make" and "make check", then deploy using "guix build --tune". My > colleague fetches it and want to run it on another cluster, i.e., they > run "guix build --tune". The test suite for the generic/baseline is > never run inside a clean environment. And as we know, this isolated > part allows to detect many common issues; which are often source of > "it works for me, why does it not work for you?". ;-) Sure, we can always come up with such scenarios. >> > My questions are coming from Julia packages in mind, where the test >> > suite is the only way to know all is fine. And many times, add System >> > Image for Julia had been discussed and basically this System Image is >> > precompilation (generic one or specialized for micro-architecture). >> > Therefore, maybe this new 'tune' transformation would fit the bill. >> > :-) >> > >> > https://docs.julialang.org/en/v1/devdocs/sysimg/ >> >> According to this page, =E2=80=98--tune=E2=80=99 won=E2=80=99t be necess= ary here because Julia >> supports function multi-versioning for its =E2=80=9Csystem image=E2=80= =9D: > > Yes, but from my understanding, the "baseline" cannot provide an image > for all the micro-architectures, but only 'generic'. Moreover, as you > described elsewhere, we cannot know for sure whether the machine that > hosts the daemon is able to run code for this specific > micro-architecture. With multi-versioning, the system image (AIUI) provides several versions of the relevant code, one for each useful micro-architecture. Such a system image can be used anywhere because the right version of the code will be picked up at run-time depending on the host CPU. It=E2=80=99s The Right Thing, so no worries here! We can take advantage of= that feature in our Julia package. Thanks, Ludo=E2=80=99.