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 5314F3858D33 for ; Mon, 16 Jan 2023 08:18:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5314F3858D33 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.97,220,1669104000"; d="scan'208";a="97152804" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 16 Jan 2023 00:18:07 -0800 IronPort-SDR: j7sIlR84fxJv2uAydBIfqUpFBqU0OVd2lEKC0cMc2IimlnOJp5B3RJrYMFn12mpZ2GJ/As92Xg buSxE19wdIiizsNl/lz3q48zaTS+p6KhojadwrlGwCACwktR1MGZb245kqBinmJ5OqloenQAbm 9dxXSJ0VzShf0jnrXdjtzT8neG1eQq5kAooz33wyAmfbYBMxPVDcu0HKAAICXUxAduxGQr9YFh mjkAXVGoIupkczRZtpJkzVfGOq0ESF7RDg8nOWB0ru9SbgzSQfo4D8Y6hC/66iRnmCS34FPkep yLE= Message-ID: <3007e1a3-2840-7847-69f4-d5c951ef1e9e@codesourcery.com> Date: Mon, 16 Jan 2023 09:17:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [wwwdocs] gcc-13/changes.html + projects/gomp/: OpenMP update Content-Language: en-US To: Gerald Pfeifer CC: gcc-patches , Jakub Jelinek , Tobias Burnus References: <008db493-fd5d-b5ca-69ae-369c630c13e6@codesourcery.com> <9a83714b-d74f-3db9-6b93-533f1631c642@pfeifer.com> From: Tobias Burnus In-Reply-To: <9a83714b-d74f-3db9-6b93-533f1631c642@pfeifer.com> 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-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) 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 autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Gerald, On 14.01.23 22:47, Gerald Pfeifer wrote: > I made a couple of incremental edits. See below for what I just pushed > (and please speak up if you see any issues). > > commit 2f870cba5aaaa8c81449beb618a9030824360a25 ... > --- a/htdocs/gcc-13/changes.html > +++ b/htdocs/gcc-13/changes.html > @@ -54,10 +54,10 @@ a work-in-progress.

... > + requires directive are now accepted. However, the > requires_offload, unified_address > - and unified_shared_memory clauses cause that the > - only available device is the initial device (the host). Fortran no= w > + and unified_shared_memory clauses imply the initial > + device (=3D the host) as the only available device. Fortran now I really stumble over the "as" =E2=80=93 that sounds wrong and I fail to pa= rse this part. I think it should be "is". On the technical side, in principle, available devices are the host (aka "i= nitial device") =E2=80=93 and all installed** (nonhost) devices =E2=80=93 in our case nvptx and (amd)= gcn GPUs. However, when using 'requires', all installed devices which do not fulfill the requirement(s) are removed from the list of available devices. In case = of 'dynamic_allocators', all devices support it, in case of 'reverse_offload' = all installed amdgcn devices are filtered out and, for unified-shared memory,* neither nv= ptx nor amdgcn support it =E2=80=93 and are removed from the list =E2=80=93 such th= at at the end, only the host remains. (Hence, device code ('target regions') will run on the ho= st =E2=86=92 host fallback.) BTW: Before the release, further updates to changes.html are required. =E2= =80=93 For instance, as alluded in the previous paragraph, 'reverse offload' is (now) supported = for nvptx. (But not yet with amdgcn.) Tobias (*) There is support for unified-shared memory for both nvptx and gcn, but the existing patches either have to be reviewed or to be revised. (**) I coined the term 'installed device'. OpenMP since TR11 contains some definitions for 'available devices' =E2=80=93 which consists of the union o= f supported and accessible devices (possibly after sorting and further filtering). Name= ly: accessible devices =E2=80=93 The host device and all non-host devices acces= sible for execution. supported devices =E2=80=93 The host device and all non-host devices suppor= ted by the implementation for execution of target code for which the device-related re= quirements of the requires directive are fulfilled. The available-devices-var is in turn by default "*" =E2=80=93 where "* expa= nds to all accessible and supported devices". (The device list can be further filtered and sorted= via the environment variable OMP_AVAILABLE_DEVICES.) ----------------- 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