From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id B513C3858405 for ; Wed, 30 Mar 2022 09:02:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B513C3858405 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="5.90,222,1643702400"; d="scan'208";a="76385669" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 30 Mar 2022 01:02:43 -0800 IronPort-SDR: oZ6c2CbKoQrWx/01K1ZNSL/6RIBWgYXgMzssnfEp/STTcI1Em3ZsHNwoMgaXi1zN9XxReHR3KN GXWkZhzZ1YpovXqUAG1p0idxsI97R5zZjwy2oM6Al+ojk1O6n6oga6NutorMmojXsX9jWEpbqd FZ7be+DDuYzUKrXcThBe/HZ+S73v7+6I3s7L8CGwrVlVqBMpCAa4tLGFLVpsBpHdQ1wxWJ5g9M Rc6UXdyZVQuk8fAMwhM5Uk/EJP7Tf8LL8fA1KJVGGEugieSAtVteewtO7gR1IdvBcY2yGWRdk8 1e8= Message-ID: Date: Wed, 30 Mar 2022 11:02:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH][nvptx, doc] Update misa and mptx, add march and march-map Content-Language: en-US To: Tom de Vries , CC: Thomas Schwinge References: <20220329133931.GA5489@delia.home> <385a766e-5eab-3af3-1d65-7115b60506ba@codesourcery.com> <4264f563-36b8-37ba-3ea8-291a0dac5921@suse.de> From: Tobias Burnus In-Reply-To: <4264f563-36b8-37ba-3ea8-291a0dac5921@suse.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-List-Received-Date: Wed, 30 Mar 2022 09:02:47 -0000 On 30.03.22 10:03, Tom de Vries wrote: > On 3/29/22 16:47, Tobias Burnus wrote: >> I think it would be useful to have additionally some wording for the >> (new in GCC 12/new since today) macros, [...] > The macro is defined also if the option is not specified, so I think > this formulation is not 100% clear in that aspect. I've reformulated > to fix that. Fine. (It was a copy, paste + modify from elsewhere.) > Also, I took out the detail of how the value is determined, since > we're just following __CUDA_ARCH__ rather than defining our own policy. OK. While I am not sure that it is obvious, also the example makes clear what value to expect. Combining the two, I concur that the details aren't required. > Any comments? LGTM. Tobias PS: Regarding the sm_30 -> sm_35 change (before in this email thread). That was not meant to be in the the .texi file, but just as item to remember when updating the wwwdocs / gcc-12/changes.html document. It was/is also not completely clear to me whether there is still this CUDA 11.x issue of not supporting sm_30 (only sm_35 and higher) or not. I assume it still exists but is mitigated at compiler-usage/libgomp-runtime-usage time as PTX ISA now defaults to 6.0 such that CUDA =E2=80=93 but shouldn't it still see sm_30 instead of sm_35 = in this case? If so, I think it will still show up when using either explicitly PTX ISA 3.1 or when building GCC itself and all of the following holds: nvptx-tools is installed, CUDA (in a too new version) is installed (ptxas in $PATH) , and the the pending pull request nvptx-tools has not been applied that ignores the non-explicit '--verify' when .target sm_xx or PTX ISA .version is not supported by ptxas. ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955