소스 검색

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;