瀏覽代碼

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

Nathalie Furmento 12 年之前
父節點
當前提交
03749ba7dd
共有 1 個文件被更改,包括 3 次插入9 次删除
  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;