This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[OpenACC] fix a couple of tests
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 20 Oct 2015 17:12:05 -0400
- Subject: [OpenACC] fix a couple of tests
- Authentication-results: sourceware.org; auth=none
I discovered these two tests try and set an unreasonable vector_length. They're
attempting to check reduction behaviour, so I've applied this patch to trunk to
reduce the vector length.
I already fixed them on the gomp4 branch, and additional functionality there
will give a diagnostic on such a large vector length. But that's a check for a
different testcase.
nathan
2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
vector_length.
* testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
Index: libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c
===================================================================
--- libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c (revision 228969)
+++ libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c (working copy)
@@ -8,7 +8,7 @@ main (void)
int n = 100;
int i;
-#pragma acc parallel vector_length (1000)
+#pragma acc parallel vector_length (32)
#pragma acc loop reduction (+:s1, s2)
for (i = 0; i < n; i++)
{
@@ -29,4 +29,4 @@ main (void)
abort ();
return 0;
-}
\ No newline at end of file
+}
Index: libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90
===================================================================
--- libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90 (revision 228969)
+++ libgomp/testsuite/libgomp.oacc-fortran/reduction-6.f90 (working copy)
@@ -11,7 +11,7 @@ program reduction
vs1 = 0
vs2 = 0
- !$acc parallel vector_length (1000)
+ !$acc parallel vector_length (32)
!$acc loop reduction(+:s1, s2)
do i = 1, n
s1 = s1 + 1