浏览代码

Reduce time for tasks_size_overhead execution

Samuel Thibault 6 年之前
父节点
当前提交
ead78caa4a
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      tests/microbenchs/tasks_size_overhead.c

+ 9 - 3
tests/microbenchs/tasks_size_overhead.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2012,2013                                Inria
  * Copyright (C) 2010-2013,2015-2018                      CNRS
- * Copyright (C) 2010-2014,2016,2017                      Université de Bordeaux
+ * Copyright (C) 2010-2014,2016,2017,2019                 Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -34,12 +34,18 @@
 #define START 4
 #define STOP 4096
 #ifdef STARPU_QUICK_CHECK
-#define FACTOR 8
+#define FACTOR 64
 #else
 #define FACTOR 2
 #endif
 
 #ifdef STARPU_QUICK_CHECK
+#define CPUSTEP 8
+#else
+#define CPUSTEP 1
+#endif
+
+#ifdef STARPU_QUICK_CHECK
 static unsigned ntasks = 1;
 #elif !defined(STARPU_LONG_CHECK)
 static unsigned ntasks = 64;
@@ -50,7 +56,7 @@ static unsigned ntasks = 256;
 static unsigned nbuffers = 0;
 static unsigned total_nbuffers = 0;
 
-static unsigned mincpus = 1, maxcpus, cpustep = 1;
+static unsigned mincpus = 1, maxcpus, cpustep = CPUSTEP;
 static unsigned mintime = START, maxtime = STOP, factortime = FACTOR;
 
 struct starpu_task *tasks;