From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 3F2843858D38 for ; Fri, 10 Mar 2023 14:21:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F2843858D38 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.98,249,1673942400"; d="scan'208,223";a="99733107" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 10 Mar 2023 06:21:25 -0800 IronPort-SDR: rxeWbWFjlMclKYLT4jw8A6d/z3BPvfZnad8HL/WsDz+nJHHbn2+7EoBkYuObBey6RERcIrc3Ke IAAs4dNtqgapXEn64YY1Nka1PXAQNFplLcCJY6ciinP/RXCJSTgrQgWsBh23vhH8wvw3OO8QjR GMdsoX97jxdZzEM4uGf3q+KTDbhldEKUp+dW4QdU10s156DdkafWA1FsXdbiL8x0eS+IJ+/16s taejbq4Rq5vnKxRCoOF8g/ESyZNwPGMbrvfqfhB4o9CuyhpeOFrTA9O7hclXDmVUU/x5Fk3C59 kus= From: Thomas Schwinge To: CC: Chung-Lin Tang Subject: Document/verify another aspect of OpenACC 'async' semantics in 'libgomp.oacc-c-c++-common/data-3.c' User-Agent: Notmuch/0.29.3+94~g74c3f1b (https://notmuchmail.org) Emacs/28.2 (x86_64-pc-linux-gnu) Date: Fri, 10 Mar 2023 15:21:17 +0100 Message-ID: <87cz5gbsbm.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --=-=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi! In order to document/verify one aspect of OpenACC 'async' semantics, I've pushed to master branch commit 442d51a20ef13a8e6c080ca30bc37fc93b6bfac4 "Document/verify another aspect of OpenACC 'async' semantics in 'libgomp.oa= cc-c-c++-common/data-3.c'", see attached. Gr=C3=BC=C3=9Fe Thomas ----------------- 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 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename="0001-Document-verify-another-aspect-of-OpenACC-async-sema.patch" >From 442d51a20ef13a8e6c080ca30bc37fc93b6bfac4 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 24 Feb 2023 16:21:31 +0100 Subject: [PATCH] Document/verify another aspect of OpenACC 'async' semantics in 'libgomp.oacc-c-c++-common/data-3.c' ... that I almost broke with later implementation changes. libgomp/ * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify another aspect of OpenACC 'async' semantics. --- libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c index 5ec50b808a7..c422cbcd325 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c @@ -144,8 +144,8 @@ main (int argc, char **argv) #pragma acc exit data copyout (a[0:N]) copyout (b[0:N]) copyout (c[0:N]) \ copyout (d[0:N]) copyout (e[0:N]) wait (1, 2, 3, 4) async (1) -#pragma acc exit data delete (N) -#pragma acc wait (1) +#pragma acc exit data delete (N) wait(1) async(2) +#pragma acc wait (2) for (i = 0; i < N; i++) { -- 2.25.1 --=-=-=--