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
This commit is contained in:
parent
fa60eeb970
commit
9ef83c047f
|
@ -1,3 +1,9 @@
|
||||||
|
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)
|
||||||
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)
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue