From patchwork Tue Nov 4 11:55:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 406531 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 C7C6814009E for ; Tue, 4 Nov 2014 22:56:10 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; q=dns; s=default; b=m1AnW1W/bEDDEqrn zFp5tEPsQYeidYYzMyDeYHWHObYcw4y8k73tCHYjv0eFo+KvDEN5j82rSI/+HYHM rJhN4w2H2DIVJoCRRDtGOn/IxlBewjQkFdPWX8isQQstHbf9Jr9E/FpSZswewQgK IrbPm4/zo5xRE2eJTON2QX3WxF4= 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:from :to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=default; bh=8998xt0hul6qk1Wal27qmH Vp81A=; b=u7JG5MPfYRsRQcjgmMBFc00nPDMqnydekfvYjqk6p0B2bUGcQfHzBa eSi2FAYvNBM5MroADoDuSuZJbh6MXsi2U2afgOmfXGMLxc2WEP01wZ1rkZGAu1T5 eFZJvlp7TSows9Ll2KZBGKXJa5aAJNoV3PJDRCWuPsbkWlaN9v7j8= Received: (qmail 12555 invoked by alias); 4 Nov 2014 11:56:03 -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 12540 invoked by uid 89); 4 Nov 2014 11:56:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham 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; Tue, 04 Nov 2014 11:56:00 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XlciK-0000mo-Bd from Thomas_Schwinge@mentor.com for gcc-patches@gcc.gnu.org; Tue, 04 Nov 2014 03:55:56 -0800 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.181.6; Tue, 4 Nov 2014 11:55:50 +0000 From: Thomas Schwinge To: "gcc-patches@gcc.gnu.org" CC: Cesar Philippidis Subject: Re: [gomp4] acc reductions with multiple variables In-Reply-To: <54541CBF.7000708@codesourcery.com> References: <54541CBF.7000708@codesourcery.com> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/24.3.1 (i586-pc-linux-gnu) Date: Tue, 4 Nov 2014 12:55:43 +0100 Message-ID: <87mw87fadc.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Hi! On Fri, 31 Oct 2014 16:35:27 -0700, Cesar Philippidis wrote: > This patch also resolves an issue when reductions are preformed on the > host, i.e. ACC_DEVICE_TYPE=host. Additional cleanup has now been possible; r217078: commit a10c5e14ec563fffa45d24366f95f8cba62af4fd Author: tschwinge Date: Tue Nov 4 11:50:58 2014 +0000 libgomp testsuite: Remove special-casing for acc_device_host_nonshm. libgomp/ * testsuite/libgomp.oacc-c/reduction-initial-1.c [ACC_DEVICE_TYPE_host_nonshm]: Remove special-casing for N. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@217078 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgomp/ChangeLog.gomp | 5 +++++ libgomp/testsuite/libgomp.oacc-c/reduction-initial-1.c | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) Grüße, Thomas diff --git libgomp/ChangeLog.gomp libgomp/ChangeLog.gomp index 35322f0..c70850b 100644 --- libgomp/ChangeLog.gomp +++ libgomp/ChangeLog.gomp @@ -1,3 +1,8 @@ +2014-11-04 Thomas Schwinge + + * testsuite/libgomp.oacc-c/reduction-initial-1.c + [ACC_DEVICE_TYPE_host_nonshm]: Remove special-casing for N. + 2014-11-03 Cesar Philippidis Thomas Schwinge diff --git libgomp/testsuite/libgomp.oacc-c/reduction-initial-1.c libgomp/testsuite/libgomp.oacc-c/reduction-initial-1.c index 0f66a39..81cf865 100644 --- libgomp/testsuite/libgomp.oacc-c/reduction-initial-1.c +++ libgomp/testsuite/libgomp.oacc-c/reduction-initial-1.c @@ -4,12 +4,7 @@ int main(void) { #define I 5 -/* TODO */ -#ifdef ACC_DEVICE_TYPE_host_nonshm -# define N 1 -#else -# define N 11 -#endif +#define N 11 #define A 8 int a = A;