Sfoglia il codice sorgente

examples/sched_ctx/sched_ctx.c: reduce number of tasks when quick check is enabled.

Nathalie Furmento 12 anni fa
parent
commit
0856536bec
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      examples/sched_ctx/sched_ctx.c

+ 5 - 0
examples/sched_ctx/sched_ctx.c

@@ -18,7 +18,12 @@
 #include <starpu.h>
 #include <pthread.h>
 
+#ifdef STARPU_QUICK_CHECK
+#define NTASKS 1000
+#else
 #define NTASKS 1000
+#endif
+
 int tasks_executed = 0;
 pthread_mutex_t mut;