@@ -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;
@@ -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];
@@ -1,7 +1,7 @@
! { dg-do run }
module e_55_1_mod
- integer, parameter :: N = 10000000, CHUNKSZ = 100000
+ integer, parameter :: N = 100000, CHUNKSZ = 10000
real :: Y(N), Z(N)
end module