From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 677 invoked by alias); 17 Dec 2018 13:56:50 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 664 invoked by uid 89); 17 Dec 2018 13:56:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:900, that'll, thatll X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Dec 2018 13:56:48 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-01.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gYtO3-0000D8-7M from Thomas_Schwinge@mentor.com for gcc-patches@gcc.gnu.org; Mon, 17 Dec 2018 05:56:47 -0800 Received: from hertz.schwinge.homeip.net (137.202.0.90) by svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 17 Dec 2018 13:56:43 +0000 From: Thomas Schwinge To: Chung-Lin Tang CC: Subject: Re: [PATCH 2/6, OpenACC, libgomp] Async re-work, oacc-* parts In-Reply-To: <95e55969-db17-06f6-a67a-98806b25b664@mentor.com> References: <12319572-dd02-c946-f2b9-9d047be9c707@mentor.com> <95e55969-db17-06f6-a67a-98806b25b664@mentor.com> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Mon, 17 Dec 2018 13:56:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2018-12/txt/msg01218.txt.bz2 Hi Chung-Lin! On Fri, 14 Dec 2018 22:42:28 +0800, Chung-Lin Tang wrote: > On 2018/12/14 10:32 PM, Thomas Schwinge wrote: > > Invoked as "acc_wait_async ([...], acc_async_sync)" (as used in a test > > case that I'll soon submit/commit), we'll end up with "aq2 =3D=3D NULL"= , and > > will segfault in the nvptx "openacc.async.serialize_func". >=20 > What does "wait async(acc_async_sync)" supposed to mean? In my understanding, that'll translate to just "wait" without an "async" clause, thus synchronous with the local (host) thread. > Instead of fixing > it here, will it make more sense to have the serialize_func hook to accom= modate > the NULL asyncqueue? Sure, that may make sense, yes. Right: if there's no asyncqueue to serialize with, then serialize/synchronize with the local (host) thread. Gr=C3=BC=C3=9Fe Thomas