瀏覽代碼

examples/reductions/minmax_reduction.c: reduce values on slow machines

Nathalie Furmento 13 年之前
父節點
當前提交
cdd2900939
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      examples/reductions/minmax_reduction.c

+ 5 - 0
examples/reductions/minmax_reduction.c

@@ -19,8 +19,13 @@
 #include <limits.h>
 #include <starpu.h>
 
+#ifdef STARPU_SLOW_MACHINE
+static unsigned nblocks = 512;
+static unsigned entries_per_bock = 64;
+#else
 static unsigned nblocks = 8192;
 static unsigned entries_per_bock = 1024;
+#endif
 
 #define FPRINTF(ofile, fmt, args ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ##args); }} while(0)