Prechádzať zdrojové kódy

tests/: decrease default values when running on windows

Nathalie Furmento 14 rokov pred
rodič
commit
93de85b30e

+ 3 - 0
tests/core/get_current_task.c

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

+ 3 - 0
tests/datawizard/acquire_release2.c

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

+ 5 - 1
tests/datawizard/reclaim.c

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