From patchwork Mon Jun 26 12:38:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 996 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 772D327BBE9; Mon, 26 Jun 2023 13:49:54 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2AD7727BBE2 for ; Mon, 26 Jun 2023 13:49:54 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDlWK-0000Ep-Hd; Mon, 26 Jun 2023 08:40:40 -0400 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 1qDlVq-0008K4-UF for guix-patches@gnu.org; Mon, 26 Jun 2023 08:40:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDlVm-0005x4-HK; Mon, 26 Jun 2023 08:40:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDlVi-0004I5-92; Mon, 26 Jun 2023 08:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64188] [PATCH v2 0/7] More package tuning References: In-Reply-To: Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: mail@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 26 Jun 2023 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64188 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64188@debbugs.gnu.org Cc: Efraim Flashner , Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 64188-submit@debbugs.gnu.org id=B64188.168778314616317 (code B ref 64188); Mon, 26 Jun 2023 12:40:02 +0000 Received: (at 64188) by debbugs.gnu.org; 26 Jun 2023 12:39:06 +0000 Received: from localhost ([127.0.0.1]:44752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDlUn-0004F4-JF for submit@debbugs.gnu.org; Mon, 26 Jun 2023 08:39:05 -0400 Received: from mail-lf1-f41.google.com ([209.85.167.41]:50555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDlUk-0004EN-GR for 64188@debbugs.gnu.org; Mon, 26 Jun 2023 08:39:03 -0400 Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-4fb7589b187so1213823e87.1 for <64188@debbugs.gnu.org>; Mon, 26 Jun 2023 05:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687783136; x=1690375136; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=pVRy+mX+iZOOhOOaHf+b20/lVwBFoaKAZLCmFHg+RzU=; b=bSXnqrkUWhNXaSY/4IkILIYBkBCBXz12oE90kddV/8ugloirOYUxU184x3fFIIAu1W uwbKrrJXvItE2QgDU4iCxg+GvhS1N80NVNFPMItwCy/KCQMsos37dBKmTOMpmAOl4qpw neUSEmkINhwm5cuS+UYexkNtSGs5EJ/xHcPIZDbCUCuu583FEe3bvSmZ7uPqwdjB0PZo fxOBUjKdk8oa/t7XCvUMihoIYcFC51v6msjBhYpREQ0vJAETkYQapAohQhlNjsQyV4L/ 7kG3X5v1yb+6q6Xev27n+cRP1fU+fMPs4CN44Tn6kdtZSxcjCA3ehmC224/PmzHjcffD Ww5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687783136; x=1690375136; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pVRy+mX+iZOOhOOaHf+b20/lVwBFoaKAZLCmFHg+RzU=; b=CcSjMHysKoAygVw3Hsp4fkf2e8VIugokS4uaLOBMWZ8Job+Gj5F2tmb768yvJuzBFP O0H1XWU7F8ytj1yvdPwq7Si5iVk8x/eh+IUPh2e9GAlNC4/IO434ySLvTKoB6YOcLIrJ F4hvGiWxU5Ul62FhKrefe8a+rP0d/s516rUT3K/9LYQ9E83ct7bicqaG35ViDO+cN96l gFVR0fLv1squ3ujH5BrAfW2cJXaZqTQD0IgA2aBYIaup2itQ0GEoIM2JM4KJIy99F6Ne 8kO8QEo2hQIh4+x8uVbOBjRnQ5/W7TBGTK/oJinIO1GDrSB+dYgBbgi1j0coOHIUTSMS 35XQ== X-Gm-Message-State: AC+VfDyL02yFSkOFhA+vM5eJAKTgPUnw9NoIFoNBznSisRSVTSbJwN7I X0A9ebhMC7BPo9eg5ozKMfplLSiNLtkRPw== X-Google-Smtp-Source: ACHHUZ6KkJa22R38+l5iwQ4bcl4+2xU6RxRyjLjyLbAFCNG7HMrtJq4V25APWj4zKFRrWYqMhXW3Tw== X-Received: by 2002:a05:6512:3a8a:b0:4fb:7381:4c69 with SMTP id q10-20020a0565123a8a00b004fb73814c69mr2116428lfu.28.1687783135995; Mon, 26 Jun 2023 05:38:55 -0700 (PDT) Received: from localhost ([188.120.129.124]) by smtp.gmail.com with ESMTPSA id u8-20020a05600c00c800b003f70a7b4537sm10510563wmm.36.2023.06.26.05.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 05:38:55 -0700 (PDT) From: Efraim Flashner Date: Mon, 26 Jun 2023 15:38:36 +0300 Message-Id: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches I hope I've addressed the comments with this patch series. I've changed the language to use psabi or to refer to 'generalized optimizations'. The go adaptations for tuning are now part of build-system-with-tuning-compiler, with an adjustment made to (also) check the psabi listing when it comes to the go compiler. Efraim Flashner (7): gnu: %gcc-11-x86_64-micro-architectures: Add psabi entries. guix: cpu: Add generalized CPU matching. guix: cpu: Rewrite fallback for x86_64 cpu->gcc-architecture. guix: cpu: Refactor cpu->gcc-architecture. guix: cpu: Add gcc-architecture->micro-architecture-level mapping. gnu: go: Add CPU tuning targets. transformations: Allow tuning go packages. gnu/packages/gcc.scm | 5 +- gnu/packages/golang.scm | 23 ++++++- guix/cpu.scm | 130 ++++++++++++++++++++++----------------- guix/transformations.scm | 37 +++++++++-- 4 files changed, 133 insertions(+), 62 deletions(-) base-commit: e85593b36b3874227ba812f47113441928c0f0c1