瀏覽代碼

Reduce amount of tasks in quick check mode

Samuel Thibault 12 年之前
父節點
當前提交
81afa29fe2
共有 1 個文件被更改,包括 5 次插入1 次删除
  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;