Explorar o código

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

Nathalie Furmento %!s(int64=15) %!d(string=hai) anos
pai
achega
20b44f0978
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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]);