Browse Source

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

Nathalie Furmento 13 years ago
parent
commit
cdd2900939
1 changed files with 5 additions and 0 deletions
  1. 5 0
      examples/reductions/minmax_reduction.c

+ 5 - 0
examples/reductions/minmax_reduction.c

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