From patchwork Fri Nov 13 16:54:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 544373 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 1400B1413F2 for ; Sat, 14 Nov 2015 03:55:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bwnX2Hc6; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=hxxzeQatZgVQbX6IRpxrSsCR/p806IF21Qmu4ouT63p8+e1nEY RiOLI9uD2dKpTXohisi8czJIrfQzrGLEo7pGMXgoCWNxIftMnGAHJuHeUhXModnX XjYNtw6Dxs5utqRDKp9bB5JFCQam4GrLLupdCQSRb215GbbpeJKr7QJ3E= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=e6/OV+Y5/dLkAWciGjbLERtKELQ=; b=bwnX2Hc6UWoIwpUNibc9 GWKYtjc0zXjmQiWmI0w0u4QBHFmiJT4kYNtghVEFhhUogwbjcOw3+thd378C4ddw D8gAmfcFPlGDKznZ6EeLQOH8Kaz7bhNyqd9JHyH97qmzakSIT4D8Bn4DVPql4O9V SQI+Ub+PqIzMSzaQfx0cYrs= Received: (qmail 27308 invoked by alias); 13 Nov 2015 16:55:01 -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 27240 invoked by uid 89); 13 Nov 2015 16:55:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f182.google.com Received: from mail-yk0-f182.google.com (HELO mail-yk0-f182.google.com) (209.85.160.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 13 Nov 2015 16:54:59 +0000 Received: by ykfs79 with SMTP id s79so156748952ykf.1 for ; Fri, 13 Nov 2015 08:54:58 -0800 (PST) X-Received: by 10.129.153.135 with SMTP id q129mr10116994ywg.15.1447433698018; Fri, 13 Nov 2015 08:54:58 -0800 (PST) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id 205sm22324226ywi.55.2015.11.13.08.54.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Nov 2015 08:54:57 -0800 (PST) To: GCC Patches From: Nathan Sidwell Subject: Fix openacc testcase Message-ID: <564615E0.8050304@acm.org> Date: Fri, 13 Nov 2015 11:54:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 I've committed this trunk patch. This test case's loop is not parallelizeable, as it increments a (non-reduction) variable. It thus must be marked 'seq'. nathan 2015-11-13 Nathan Sidwell * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential loop is sequential. Index: libgomp/testsuite/libgomp.oacc-c-c++-common/collapse-2.c =================================================================== --- libgomp/testsuite/libgomp.oacc-c-c++-common/collapse-2.c (revision 230324) +++ libgomp/testsuite/libgomp.oacc-c-c++-common/collapse-2.c (working copy) @@ -9,7 +9,7 @@ main (void) int m1 = 4, m2 = -5, m3 = 17; #pragma acc parallel copy(l) - #pragma acc loop collapse(3) reduction(+:l) + #pragma acc loop seq collapse(3) reduction(+:l) for (i = -2; i < m1; i++) for (j = m2; j < -2; j++) {