This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix openacc testcase
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 13 Nov 2015 11:54:56 -0500
- Subject: Fix openacc testcase
- Authentication-results: sourceware.org; auth=none
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 <nathan@codesourcery.com>
* 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++)
{