瀏覽代碼

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

Nathalie Furmento 14 年之前
父節點
當前提交
4c9af3b9e7
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      examples/basic_examples/variable.c

+ 4 - 1
examples/basic_examples/variable.c

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