Explorar el Código

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

Nathalie Furmento hace 13 años
padre
commit
cdd2900939
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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)