Message ID | 20250331104217.825384-1-luca.cirrottola@inria.fr |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 160A527BBE9; Mon, 31 Mar 2025 11:43:30 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 5E25427BBE2 for <patchwork@mira.cbaines.net>; Mon, 31 Mar 2025 11:43:28 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1tzCbk-0008CF-Mg; Mon, 31 Mar 2025 06:43:09 -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 <Debian-debbugs@debbugs.gnu.org>) id 1tzCbi-0008Bn-8Q for guix-patches@gnu.org; Mon, 31 Mar 2025 06:43:06 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1tzCbh-0000dp-W8 for guix-patches@gnu.org; Mon, 31 Mar 2025 06:43:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=HRytnT415ph0O0F4aGhw5sZ3Sui32V/iyKuTWRBKvkE=; b=hGdsr11E0cikqEqMWSdI/CR9vaIWiebMzyzLXp76xjskOeG4ThQMLMFS7THtboA+XqDKQnlXp+QfypOA25TkNgk88mQ02aYavy8nzok6aMV9I/cMa2rEGeRy3+fNclYHHbQhvAdDEySHzp+9BWpFvuCNuFC7FMuFuLHi8SQUucEDSTLq2D4jzQSNOYQB6ydXwMv50E086Cl9DqTvZbk98zj+kWo3aieT9N561IkOlfV1cQBFR4t9Tcal1BS6Z3CMXrzF7aZzHh58whfWnN4cF5pp678fa5z/CpVwiRUtzw+gWyaYS2MzcCKuB9s/6oZ+CLuGiYLN1rUHg4ejQb3L1g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tzCbh-000267-K3 for guix-patches@gnu.org; Mon, 31 Mar 2025 06:43:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77404] [PATCH 0/1] PETSc compiler optimization: Pass from -O1 to -O3 Resent-From: Luca Cirrottola <luca.cirrottola@inria.fr> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 31 Mar 2025 10:43:04 +0000 Resent-Message-ID: <handler.77404.B.17434177787978@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77404 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77404@debbugs.gnu.org Cc: Luca Cirrottola <luca.cirrottola@inria.fr> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17434177787978 (code B ref -1); Mon, 31 Mar 2025 10:43:04 +0000 Received: (at submit) by debbugs.gnu.org; 31 Mar 2025 10:42:58 +0000 Received: from localhost ([127.0.0.1]:40007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tzCbZ-00024W-KL for submit@debbugs.gnu.org; Mon, 31 Mar 2025 06:42:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37352) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <luca.cirrottola@inria.fr>) id 1tzCbW-00023d-RQ for submit@debbugs.gnu.org; Mon, 31 Mar 2025 06:42:55 -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 <luca.cirrottola@inria.fr>) id 1tzCbQ-0008AM-F5 for guix-patches@gnu.org; Mon, 31 Mar 2025 06:42:49 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <luca.cirrottola@inria.fr>) id 1tzCbO-0000cv-I2 for guix-patches@gnu.org; Mon, 31 Mar 2025 06:42:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HRytnT415ph0O0F4aGhw5sZ3Sui32V/iyKuTWRBKvkE=; b=XfmX1g3Wn+lnG+/PIlrmYW/v9/8Cb6R7tr12nFXwNrK4D7PFcBtgDKpM aVwyPu2tgIleyqpcp00lJ3XLnFZsK9DvfNTF/JEr6dNaWoOhYtT1Qfhfg iVQO1gCMCrEP/gLqU2TTBgTq7uD6op+doKIFMXZGAPZVYdpirAdrj9erG U=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=luca.cirrottola@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.14,290,1736809200"; d="scan'208";a="113027673" Received: from 14.114.133.77.rev.sfr.net (HELO canard..) ([77.133.114.14]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2025 12:42:40 +0200 From: Luca Cirrottola <luca.cirrottola@inria.fr> Date: Mon, 31 Mar 2025 12:42:17 +0200 Message-Id: <20250331104217.825384-1-luca.cirrottola@inria.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.134.164.104; envelope-from=luca.cirrottola@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=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 |
Series |
PETSc compiler optimization: Pass from -O1 to -O3
|
|
Message
Luca Cirrottola
March 31, 2025, 10:42 a.m. UTC
Hello Guix, I have recently noticed that the "petsc" package raises the following warnings during the configuration phase, showing that the compiler only does O1 optimization for now: ============================================================================================= Configuring PETSc to compile on your system ============================================================================================= ============================================================================================= ***** WARNING ***** Using default C optimization flags "-g -O". You might consider manually setting optimal optimization flags for your system with COPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples ============================================================================================= ============================================================================================= ***** WARNING ***** Using default Cxx optimization flags "-g". You might consider manually setting optimal optimization flags for your system with CXXOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples ============================================================================================= ============================================================================================= ***** WARNING ***** Using default FC optimization flags "-g -O". You might consider manually setting optimal optimization flags for your system with FOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for examples ============================================================================================= So here is a patch that follows the hints and passes the "-g -O3" flags to the COPTFLAGS, CXXOPTFLAGS and FOPTFLAGS variables. The package builds successfully on my machine. Some tests fail for both the packages "petsc" and "petsc-openmpi", but these were failing already with the "-O1" flag (so maybe this could be the topic of another issue). I am looking forward for your review. Cheers, Luca Luca Cirrottola (1): Activate higher compiler optimization for PETSc. gnu/packages/maths.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) base-commit: 4b97ae180fc13f7e4818cf48519f8a77c22c7797
Comments
Hello, thanks for the patch! I have pushed it after adapting the commit message to our coding standards. Andreas