浏览代码

tests/: examples/: lowering default values on windows platforms is actually not needed

Nathalie Furmento 14 年之前
父节点
当前提交
ddb3a74922

+ 1 - 3
examples/basic_examples/variable.c

@@ -40,9 +40,7 @@ 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;
 

+ 0 - 3
examples/incrementer/incrementer.c

@@ -42,9 +42,6 @@ int main(int argc, char **argv)
 {
 	starpu_init(NULL);
 
-#ifdef STARPU_HAVE_WINDOWS
-	niter /= 10;
-#endif
 	if (argc == 2)
 		niter = atoi(argv[1]);
 

+ 0 - 3
tests/core/get_current_task.c

@@ -50,9 +50,6 @@ int main(int argc, char **argv)
 //	struct timeval start;
 //	struct timeval end;
 
-#ifdef STARPU_HAVE_WINDOWS
-	ntasks /= 8;
-#endif
 	starpu_init(NULL);
 
 	fprintf(stderr, "#tasks : %d\n", ntasks);

+ 0 - 3
tests/core/multithreaded.c

@@ -94,9 +94,6 @@ 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);

+ 0 - 3
tests/core/starpu_task_wait_for_all.c

@@ -110,9 +110,6 @@ 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);

+ 1 - 4
tests/datawizard/acquire_release2.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * 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
@@ -61,9 +61,6 @@ int main(int argc, char **argv)
 {
 	int i;
 
-#ifdef STARPU_HAVE_WINDOWS
-	ntasks /= 10;
-#endif
         starpu_init(NULL);
 	starpu_variable_data_register(&token_handle, 0, (uintptr_t)&token, sizeof(unsigned));
 

+ 1 - 5
tests/datawizard/reclaim.c

@@ -25,11 +25,7 @@
 #include <hwloc.h>
 #endif
 
-#ifdef STARPU_HAVE_WINDOWS
-#  define BLOCK_SIZE	(64*1024)
-#else
-#  define BLOCK_SIZE	(64*1024*1024)
-#endif
+#define BLOCK_SIZE	(64*1024*1024)
 
 static unsigned ntasks = 1000;