Explorar o código

gcc-plugin/examples/stencil5.c: reduce problem size

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
03749ba7dd
Modificáronse 1 ficheiros con 3 adicións e 9 borrados
  1. 3 9
      gcc-plugin/examples/stencil5.c

+ 3 - 9
gcc-plugin/examples/stencil5.c

@@ -34,15 +34,9 @@ static void stencil5_cpu(float *xy, const float *xm1y, const float *xp1y, const
 	*xy = (*xy + *xm1y + *xp1y + *xym1 + *xyp1) / 5;
 }
 
-#ifdef STARPU_QUICK_CHECK
-#  define NITER_DEF	5
-#  define X         	3
-#  define Y         	3
-#else
-#  define NITER_DEF	500
-#  define X         	20
-#  define Y         	20
-#endif
+#define NITER_DEF	10
+#define X         	4
+#define Y         	4
 
 int display = 0;
 int niter = NITER_DEF;