diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-11-26 19:36:36 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2014-11-26 19:36:36 +0000 |
commit | 1cdce43e927a48fbec7bed33ad26e679784ba570 (patch) | |
tree | fe27cca9a8991a9593ac4d227847ba7ad0291018 /libgomp/testsuite/libgomp.c | |
parent | 2c90b13b12fe66354e13146bf9beeac29ed3e257 (diff) |
* testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
to dg-options unless expensive testing is on.
(TESTITERS): Define to N if not defined.
(main): Use TESTITERS instead of N.
* testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
dg-additional-options depending on whether expensive testing is on.
* testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
Decrease N to 100000 and CHUNKSZ to 10000.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@218095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite/libgomp.c')
-rw-r--r-- | libgomp/testsuite/libgomp.c/examples-4/e.53.4.c | 6 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/examples-4/e.55.1.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgomp/testsuite/libgomp.c/examples-4/e.53.4.c b/libgomp/testsuite/libgomp.c/examples-4/e.53.4.c index 278e1a41707..db70460b309 100644 --- a/libgomp/testsuite/libgomp.c/examples-4/e.53.4.c +++ b/libgomp/testsuite/libgomp.c/examples-4/e.53.4.c @@ -1,9 +1,13 @@ /* { dg-do run } */ +/* { dg-additional-options "-DTESTITERS=20" { target { ! run_expensive_tests } } } */ #include <stdlib.h> #define EPS 0.00001 #define N 1000 +#ifndef TESTITERS +#define TESTITERS N +#endif #pragma omp declare target float Q[N][N]; @@ -60,7 +64,7 @@ int main () #pragma omp target update to(Q) - for (i = 0; i < N; i++) + for (i = 0; i < TESTITERS; i++) check (accum (i), accum_ref (i)); return 0; diff --git a/libgomp/testsuite/libgomp.c/examples-4/e.55.1.c b/libgomp/testsuite/libgomp.c/examples-4/e.55.1.c index 082e78a7ddb..b2e1f1feef8 100644 --- a/libgomp/testsuite/libgomp.c/examples-4/e.55.1.c +++ b/libgomp/testsuite/libgomp.c/examples-4/e.55.1.c @@ -1,10 +1,11 @@ /* { dg-do run } */ +/* { dg-additional-options "-DCHUNKSZ=5000" { target { ! run_expensive_tests } } } */ +/* { dg-additional-options "-DCHUNKSZ=1000" { target run_expensive_tests } } */ #include <stdlib.h> #define EPS 0.00001 #define N 100000 -#define CHUNKSZ 1000 float Y[N]; float Z[N]; |