From patchwork Fri Jun 16 13:43:16 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: Tobias Burnus
X-Patchwork-Id: 1795908
Return-Path:
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org
(client-ip=8.43.85.97; helo=sourceware.org;
envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org;
receiver=)
Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4QjL3F4ykxz20ZB
for ; Fri, 16 Jun 2023 23:43:37 +1000 (AEST)
Received: from server2.sourceware.org (localhost [IPv6:::1])
by sourceware.org (Postfix) with ESMTP id BECED3858035
for ; Fri, 16 Jun 2023 13:43:35 +0000 (GMT)
X-Original-To: gcc-patches@gcc.gnu.org
Delivered-To: gcc-patches@gcc.gnu.org
Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153])
by sourceware.org (Postfix) with ESMTPS id 0EF993858D35
for ; Fri, 16 Jun 2023 13:43:22 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0EF993858D35
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=codesourcery.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com
X-IronPort-AV: E=Sophos;i="6.00,247,1681200000";
d="diff'?scan'208";a="10098963"
Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167])
by esa1.mentor.iphmx.com with ESMTP; 16 Jun 2023 05:43:21 -0800
IronPort-SDR:
3DZOeBLQcFoJqplQb17hn9V4OMSfjqcxQhRmPf6hKpB5j4Jc1q+kMIm1HzmlGeacYfZCQAsDyc
1nmFPNFgoGCEnUG/meCYHlcBxSwebsdQXsv8bki23TFkuJOnzlfkasBQTNKHem74CaPBIDXkAW
ksHRTh31w1P9PVZCWtdX7czHOo2UJ0XtfJ8LQHONrlOOJAMf8G0KJK39+md02geunwKYM+Gqft
fN24uGo3ZjhgVAFzVYgD9DGP3P2UCuDrg+YGV03qRLxAY4eZDxVfgrv/fWBv8HBXdU9IG4FEoY
XbE=
Message-ID: <675b9052-5688-6079-2300-86e51f7939b1@codesourcery.com>
Date: Fri, 16 Jun 2023 15:43:16 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Content-Language: en-US
To: gcc-patches , Gerald Pfeifer
, Thomas Schwinge
From: Tobias Burnus
Subject: [wwwdocs] gcc-14/changes.htm - Offloading: -lm/-lgfortran is
autolinked
X-Originating-IP: [137.202.0.90]
X-ClientProxiedBy: svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) To
svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12)
X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS,
SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org
Sender: "Gcc-patches"
Thomas recently improved the offload experience by avoiding to use, e.g.
gfortran -O3 -fopenmp qcd.f90 -lblas -foffload-options="-lgfortran -lm"
as libm and libgfortran now automatically get linked as 'gfortran' links
-lgfortran and -lm on the host (only those libraries, not others). Thus,
the commandline now looks much more natural:
gfortran -O3 -fopenmp qcd.f90 -lblas
→ https.//gcc.gnu.org/r14-1807-g4bcb46b3ade179 for the code change.
Attached patch documents it in the release notes.
I loved to hear comments, suggestions, improvements (or even appraisals).
If not, I just will commit it eventually as is - and it has to be improved
later on ...
Tobias
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
gcc-14/changes.htm - Offloading: -lm/-lgfortran is autolinked
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index c403c94f..96653f05 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -51,6 +51,15 @@ a work-in-progress.
was extended.
+
+ For offload-device code generated via OpenMP and OpenACC, the math
+ library and the Fortran runtime library will now automatically be linked,
+ when the user or compiler links them on the host side. Thus, it is no
+ longer required to explicitly pass -lm
and/or
+ -lgfortran
to the offload-device linker using the -foffload-options=
flag.
+
New Languages and Language specific improvements