From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 10:52:51 2021 Received: (at 52283) by debbugs.gnu.org; 7 Dec 2021 15:52:51 +0000 Received: from localhost ([127.0.0.1]:38468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muclu-0003KT-Om for submit@debbugs.gnu.org; Tue, 07 Dec 2021 10:52:50 -0500 Received: from mail-io1-f43.google.com ([209.85.166.43]:38870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mucls-0003KG-Ta for 52283@debbugs.gnu.org; Tue, 07 Dec 2021 10:52:49 -0500 Received: by mail-io1-f43.google.com with SMTP id z18so17683725iof.5 for <52283@debbugs.gnu.org>; Tue, 07 Dec 2021 07:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=swT/mWeVRO6rmVpYll0pgnmMKkPSlK5clC7LzhyafHY=; b=e4O8c/8lef7w2TBzoHfe9cMvIXeMgdrFbRNLF9LQqdMaTDYCvfyFQHj/BI1UPZ/9j/ VudDOPP09DlHcpsOafQJxCLKfU/JBEdPq9tfgQl0YPs1DzWs/cFm4MIKebMj+JVQKTVJ kPfQUHCYYVvnuoPAUXQJRaOhsCAwsS8OceET8/qjDkrUc7ZAqGDR4PoHVhBuiBjzp3Tz lzdF6MMY23aAObdACIT0AAYrLTqGnEPHNWnsRs/VrrlnFkIjEd0UMxNxWrrrO+97VxM7 /hkSjphfiA7KWl9qvojTPVsDevR+Q2O1cur0LPrapTqKeYx8xzrOR0qAdBWnHjF/eEsV CN0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=swT/mWeVRO6rmVpYll0pgnmMKkPSlK5clC7LzhyafHY=; b=Q+FaULBZXr+yL9gSx9IhvrBpIOn8YBCHYt8+Cq3slF5cgGZJ42qlCXoIZSll1ESKM1 VBY9qT/NEnQeIf1+eynOrvMwIjfmPO7eR1mA8NkFTv/BcIfMHh62MNfWmbbrEaGj/gYw /G/zyeR/XS8iaI9QMGkigf1bklBKJeWarZBtERuvDt2VGumJvO/wqfheTPrNgyFrWLNH L0aUiBjMzjgoP8Yy3FOFEAD5isuw4A5cNc+NpMBAfGrO0kv69cbhFhGuS4Vsu7WzONxT MlBCzntb/4ipwzZTfGK70Bqbv4dPFZCzJW2aUDUWicQFpZ2t+T5yF8Ifn9V7tjwFP+Ad v3BQ== X-Gm-Message-State: AOAM531MfJjGolqcU9st0UOsvBpThrr4E4+qcaWK51nAPb9CzyuK7J9D unHu57+aoGsu+Hl4LsXEbIPkwJ3KPid1zpv8mE0= X-Google-Smtp-Source: ABdhPJwGRn/Hu0sRKEW0g18GxNbubYPEMVheWp8tkho6kj8V8sZFoxlU8tG1O7Ga8LW5fbAryOOLHOFqRnRcga6Dvok= X-Received: by 2002:a02:9586:: with SMTP id b6mr51972712jai.24.1638892363213; Tue, 07 Dec 2021 07:52:43 -0800 (PST) MIME-Version: 1.0 References: <20211204204924.15581-1-ludo@gnu.org> <20211204204924.15581-2-ludo@gnu.org> <7364829.rrRS6mQaNJ@popigai> <871r2olu1j.fsf@inria.fr> <875ys0jwlf.fsf@inria.fr> In-Reply-To: <875ys0jwlf.fsf@inria.fr> From: zimoun Date: Tue, 7 Dec 2021 16:52:31 +0100 Message-ID: Subject: Re: [bug#52283] [PATCH 02/10] transformations: Add '--tune'. To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52283 Cc: 52283@debbugs.gnu.org, Thiago Jung Bauermann X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On Tue, 7 Dec 2021 at 15:52, Ludovic Court=C3=A8s wrote: > zimoun skribis: > >> The test suite runs in the =E2=80=9Cbaseline=E2=80=9D package build an= yway, so assuming > >> the compiler works fine, skipping the test suite on tuned builds is > >> okay. > > > > 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?". ;-) > > 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 necessa= ry 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. Anyway. That's off topic. ;-) Thanks for explaining and let discuss elsewhere this Julia machinery. :-) Cheers, simon