diff mbox

Fix openacc testcase

Message ID 564615E0.8050304@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Nov. 13, 2015, 4:54 p.m. UTC
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
diff mbox

Patch

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++)
 	{