Procházet zdrojové kódy

Reduce amount of tasks in quick check mode

Samuel Thibault před 12 roky
rodič
revize
81afa29fe2
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      examples/sched_ctx/sched_ctx.c

+ 5 - 1
examples/sched_ctx/sched_ctx.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2012  Université de Bordeaux 1
+ * Copyright (C) 2010-2013  Université de Bordeaux 1
  * Copyright (C) 2010-2013  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -18,7 +18,11 @@
 #include <starpu.h>
 #include <pthread.h>
 
+#ifdef STARPU_QUICK_CHECK
+#define NTASKS 64
+#else
 #define NTASKS 1000
+#endif
 
 int tasks_executed = 0;
 pthread_mutex_t mut;