ソースを参照

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)