From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117530 invoked by alias); 23 Nov 2015 11:09:42 -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 117509 invoked by uid 89); 23 Nov 2015 11:09:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 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, 23 Nov 2015 11:09:40 +0000 Received: from svr-orw-fem-03.mgc.mentorg.com ([147.34.97.39]) by relay1.mentorg.com with esmtp id 1a0p05-00050K-EH from ChungLin_Tang@mentor.com for gcc-patches@gcc.gnu.org; Mon, 23 Nov 2015 03:09:37 -0800 Received: from [0.0.0.0] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.3.224.2; Mon, 23 Nov 2015 03:09:36 -0800 From: Chung-Lin Tang Subject: [gomp4] Adjust Fortran OACC async lib test To: gcc-patches CC: Thomas Schwinge Message-ID: <5652F3F0.906@codesourcery.com> Date: Mon, 23 Nov 2015 11:13:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090601060202070801050000" X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg02684.txt.bz2 --------------090601060202070801050000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-length: 609 Hi Thomas, this fix adds more acc_wait's to libgomp.oacc-fortran/lib-1[13].f90. For lib-12.f90, it's sort of a fix before we can resolve the issue of intended semantics for "wait+async". As for lib-13.f90, I believe these added acc_wait calls seem reasonable, since we can't immediately assume the async-launched parallels already completed there. Does this seem reasonable? Thanks, Chung-Lin * testsuite/libgomp.oacc-fortran/lib-12.f90 (main): Add acc_wait() after async parallel construct. * testsuite/libgomp.oacc-fortran/lib-13.f90 (main): Add acc_wait() calls after parallel construct launches. --------------090601060202070801050000 Content-Type: text/plain; charset="UTF-8"; x-mac-type=0; x-mac-creator=0; name="f.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="f.diff" Content-length: 1103 SW5kZXg6IGxpYmdvbXAub2FjYy1mb3J0cmFuL2xpYi0xMi5mOTAKPT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PQotLS0gbGliZ29tcC5vYWNjLWZvcnRyYW4vbGli LTEyLmY5MAkocmV2aXNpb24gMjMwNzE5KQorKysgbGliZ29tcC5vYWNjLWZv cnRyYW4vbGliLTEyLmY5MAkod29ya2luZyBjb3B5KQpAQCAtMTUsNiArMTUs OCBAQCBwcm9ncmFtIG1haW4KICAgICBlbmQgZG8KICAgISRhY2MgZW5kIHBh cmFsbGVsCiAKKyAgY2FsbCBhY2Nfd2FpdCAoMCkKKwogICBjYWxsIGFjY193 YWl0X2FzeW5jICgwLCAxKQogCiAgIGlmIChhY2NfYXN5bmNfdGVzdCAoMCkg Lm5lcXYuIC5UUlVFLikgY2FsbCBhYm9ydApJbmRleDogbGliZ29tcC5vYWNj LWZvcnRyYW4vbGliLTEzLmY5MAo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0t LSBsaWJnb21wLm9hY2MtZm9ydHJhbi9saWItMTMuZjkwCShyZXZpc2lvbiAy MzA3MTkpCisrKyBsaWJnb21wLm9hY2MtZm9ydHJhbi9saWItMTMuZjkwCSh3 b3JraW5nIGNvcHkpCkBAIC0yMSw2ICsyMSw5IEBAIHByb2dyYW0gbWFpbgog ICAgIGVuZCBkbwogICAhJGFjYyBlbmQgZGF0YQogCisgIGNhbGwgYWNjX3dh aXQgKDEpCisgIGNhbGwgYWNjX3dhaXQgKDIpCisKICAgaWYgKGFjY19hc3lu Y190ZXN0ICgxKSAubmVxdi4gLlRSVUUuKSBjYWxsIGFib3J0CiAgIGlmIChh Y2NfYXN5bmNfdGVzdCAoMikgLm5lcXYuIC5UUlVFLikgY2FsbCBhYm9ydAog Cg== --------------090601060202070801050000--