mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-09 17:31:09 +08:00
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
libgomp
@ -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>
|
||||
Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user