Browse Source

examples/incrementer/incrementer.c: decrease default number of iterations on windows (it is too slow otherwise)

Nathalie Furmento 14 years ago
parent
commit
20b44f0978
1 changed files with 4 additions and 1 deletions
  1. 4 1
      examples/incrementer/incrementer.c

+ 4 - 1
examples/incrementer/incrementer.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 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
@@ -42,6 +42,9 @@ int main(int argc, char **argv)
 {
 	starpu_init(NULL);
 
+#ifdef STARPU_HAVE_WINDOWS
+	niter /= 10;
+#endif
 	if (argc == 2)
 		niter = atoi(argv[1]);