Explorar el Código

tests/core/{multithreaded,starpu_task_wait_for_all}: decrease default number of tasks on windows (it is too slow otherwise)

Nathalie Furmento hace 14 años
padre
commit
08f3f399b2

+ 3 - 0
tests/core/multithreaded.c

@@ -93,6 +93,9 @@ int main(int argc, char **argv)
 	struct timeval start;
 	struct timeval end;
 
+#ifdef STARPU_HAVE_WINDOWS
+	ntasks /= 8
+#endif
 	parse_args(argc, argv);
 
 	starpu_init(NULL);

+ 1 - 0
tests/core/multithreaded_init.c

@@ -2,6 +2,7 @@
  *
  * Copyright (C) 2010  Institut National de Recherche en Informatique et Automatique
  * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2011  Centre National de la Recherche Scientifique
  *
  * 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

+ 4 - 1
tests/core/starpu_task_wait_for_all.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010  Université de Bordeaux 1
- * Copyright (C) 2010  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
  *
  * 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
@@ -110,6 +110,9 @@ int main(int argc, char **argv)
 	struct timeval start;
 	struct timeval end;
 
+#ifdef STARPU_HAVE_WINDOWS
+	ntasks /= 8
+#endif
 	parse_args(argc, argv);
 
 	starpu_init(&conf);