From patchwork Thu Jul 26 07:59:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 949528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-482388-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="PRXSXHDr"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41bkxr6HRYz9ryl for ; Thu, 26 Jul 2018 17:58:56 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=KJvQKdQAYdN6y7c5u2SyRlNAWBUaHmyEYZ6lJoO7Q/5IspE2c9 v/cueLJmnkAWq14nLyHL5nuQZEcLKBvia2BOK1vPSPLN/eQBoKiOGp2C4UmX7NJv ENOiD3pGeM1M4B+yxHKy9IiJxboqOWugv3YDmrw5r4IELNIBev5NnjOFc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=vTEwjsoiPmmgjIPTsfPjR+YbBD0=; b=PRXSXHDrQe8Kt6qK2pQX /6wQvtQg7SfzctGSRsnfcc8k4yPEH7QoR0m2aj8ybRiufo+7DTaETgVTT+9GeEPv 6t01qlXUsL3/sWMgrHhAx2ulUb7KNbiDYaEFKy/D3bWj160sFg0gogiXAAJ+CytW 9/iT3tSZj6Yrf1Ivnj9n/5U= Received: (qmail 28543 invoked by alias); 26 Jul 2018 07:58:49 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 28497 invoked by uid 89); 26 Jul 2018 07:58:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Jul 2018 07:58:47 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 40AA9ACC1; Thu, 26 Jul 2018 07:58:45 +0000 (UTC) Date: Thu, 26 Jul 2018 09:59:03 +0200 From: Tom de Vries To: gcc-patches@gcc.gnu.org Cc: Thomas Schwinge Subject: [committed, libgomp, openacc, testsuite] Fix async logic in lib-12.f90 Message-ID: <20180726075902.iv63pvskgthjijcy@delia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170912 (1.9.0) X-IsSubscribed: yes Hi, in testcase lib-12.f90, all acc_async_test calls are placed in a location where they are not guaranteed to succeed, which explains why there's an xfail for the lower optimization levels. This patch fixes the problem by moving the acc_async_test calls to the correct locations. Reg-tested on x86_64 with nvptx accelerator. Committed to trunk. Thanks, - Tom [libgomp, openacc, testsuite] Fix async logic in lib-12.f90 2018-07-26 Tom de Vries * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls to correct locations. Remove xfail. --- libgomp/testsuite/libgomp.oacc-fortran/lib-12.f90 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libgomp/testsuite/libgomp.oacc-fortran/lib-12.f90 b/libgomp/testsuite/libgomp.oacc-fortran/lib-12.f90 index e307dfde374..6912f67d444 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/lib-12.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/lib-12.f90 @@ -1,5 +1,4 @@ ! { dg-do run } -! { dg-xfail-run-if "TODO" { openacc_nvidia_accel_selected } { "-O0" "-O1" } { "" } } program main use openacc @@ -18,10 +17,9 @@ program main call acc_wait_async (0, 1) - if (acc_async_test (0) .neqv. .TRUE.) call abort + call acc_wait (1) + if (acc_async_test (0) .neqv. .TRUE.) call abort if (acc_async_test (1) .neqv. .TRUE.) call abort - call acc_wait (1) - end program