Commit 9ef83c04 by Nathan Sidwell Committed by Nathan Sidwell

reduction-5.c: Set sane vector_length.

	* testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
	vector_length.
	* testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.

From-SVN: r229100
parent fa60eeb9
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.
2015-10-14 Ilya Verbin <ilya.verbin@intel.com> 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
Aleksander Ivanushenko <aleksander.ivanushenko@intel.com> Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
......
...@@ -8,7 +8,7 @@ main (void) ...@@ -8,7 +8,7 @@ main (void)
int n = 100; int n = 100;
int i; int i;
#pragma acc parallel vector_length (1000) #pragma acc parallel vector_length (32)
#pragma acc loop reduction (+:s1, s2) #pragma acc loop reduction (+:s1, s2)
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
{ {
...@@ -29,4 +29,4 @@ main (void) ...@@ -29,4 +29,4 @@ main (void)
abort (); abort ();
return 0; return 0;
} }
\ No newline at end of file
...@@ -11,7 +11,7 @@ program reduction ...@@ -11,7 +11,7 @@ program reduction
vs1 = 0 vs1 = 0
vs2 = 0 vs2 = 0
!$acc parallel vector_length (1000) !$acc parallel vector_length (32)
!$acc loop reduction(+:s1, s2) !$acc loop reduction(+:s1, s2)
do i = 1, n do i = 1, n
s1 = s1 + 1 s1 = s1 + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment