Преглед на файлове

shorten some long tasks

Samuel Thibault преди 13 години
родител
ревизия
0332296cb4
променени са 4 файла, в които са добавени 22 реда и са изтрити 6 реда
  1. 5 1
      tests/datawizard/data_invalidation.c
  2. 6 2
      tests/datawizard/unpartition.c
  3. 6 2
      tests/microbenchs/prefetch_data_on_node.c
  4. 5 1
      tests/microbenchs/sync_tasks_overhead.c

+ 5 - 1
tests/datawizard/data_invalidation.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2010, 2012  Université de Bordeaux 1
  * Copyright (C) 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -24,7 +24,11 @@
 #include <stdlib.h>
 #include "../helper.h"
 
+#ifdef STARPU_SLOW_MACHINE
+#define NLOOPS		100
+#else
 #define NLOOPS		1000
+#endif
 #define VECTORSIZE	1024
 
 static starpu_data_handle_t v_handle;

+ 6 - 2
tests/datawizard/unpartition.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2011  Université de Bordeaux 1
+ * Copyright (C) 2010-2012  Université de Bordeaux 1
  * Copyright (C) 2010  Mehdi Juhoor <mjuhoor@gmail.com>
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
@@ -23,7 +23,11 @@
 #include <stdlib.h>
 #include "../helper.h"
 
-#define NITER		1000
+#ifdef STARPU_SLOW_MACHINE
+#define NLOOPS		100
+#else
+#define NLOOPS		1000
+#endif
 #define VECTORSIZE	1024
 
 float *buffer;

+ 6 - 2
tests/microbenchs/prefetch_data_on_node.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009-2011  Université de Bordeaux 1
+ * Copyright (C) 2009-2012  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -23,7 +23,11 @@
 #include <pthread.h>
 #include "../helper.h"
 
-#define N	1000
+#ifdef STARPU_SLOW_MACHINE
+#define N		100
+#else
+#define N		1000
+#endif
 
 #define VECTORSIZE	1024
 

+ 5 - 1
tests/microbenchs/sync_tasks_overhead.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2011  Université de Bordeaux 1
+ * Copyright (C) 2010-2012  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -93,6 +93,10 @@ int main(int argc, char **argv)
 	struct timeval start;
 	struct timeval end;
 
+#ifdef STARPU_SLOW_MACHINE
+	ntasks = 128;
+#endif
+
 	parse_args(argc, argv);
 
 	ret = starpu_init(NULL);