From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82647 invoked by alias); 14 Dec 2018 14:42:39 -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 82637 invoked by uid 89); 14 Dec 2018 14:42:39 -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:507, H*r:0800 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; Fri, 14 Dec 2018 14:42:37 +0000 Received: from svr-orw-mbx-02.mgc.mentorg.com ([147.34.90.202]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gXofj-00048T-HO from ChungLin_Tang@mentor.com for gcc-patches@gcc.gnu.org; Fri, 14 Dec 2018 06:42:35 -0800 Received: from [0.0.0.0] (147.34.91.1) by svr-orw-mbx-02.mgc.mentorg.com (147.34.90.202) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 14 Dec 2018 06:42:32 -0800 Reply-To: Subject: Re: [PATCH 2/6, OpenACC, libgomp] Async re-work, oacc-* parts To: Thomas Schwinge , Chung-Lin Tang CC: References: <12319572-dd02-c946-f2b9-9d047be9c707@mentor.com> From: Chung-Lin Tang Message-ID: <95e55969-db17-06f6-a67a-98806b25b664@mentor.com> Date: Fri, 14 Dec 2018 14:42:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-12/txt/msg01063.txt.bz2 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 == NULL", and > will segfault in the nvptx "openacc.async.serialize_func". What does "wait async(acc_async_sync)" supposed to mean? Instead of fixing it here, will it make more sense to have the serialize_func hook to accommodate the NULL asyncqueue? Chung-Lin