Browse Source

Add missing task cleanup

Samuel Thibault 12 years ago
parent
commit
b046a1f9fa
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/microbenchs/tasks_size_overhead.c

+ 4 - 1
tests/microbenchs/tasks_size_overhead.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
- * Copyright (C) 2010-2012  Université de Bordeaux 1
+ * Copyright (C) 2010-2013  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  *
  *
  * StarPU is free software; you can redistribute it and/or modify
  * StarPU is free software; you can redistribute it and/or modify
@@ -190,6 +190,9 @@ int main(int argc, char **argv)
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 			STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait_for_all");
 			gettimeofday(&end, NULL);
 			gettimeofday(&end, NULL);
 
 
+			for (i = 0; i < ntasks; i++)
+				starpu_task_clean(&tasks[i]);
+
 			timing = (double)((end.tv_sec - start.tv_sec)*1000000 + (end.tv_usec - start.tv_usec));
 			timing = (double)((end.tv_sec - start.tv_sec)*1000000 + (end.tv_usec - start.tv_usec));
 
 
 			FPRINTF(stdout, "%u\t%f\t", size, timing/1000000);
 			FPRINTF(stdout, "%u\t%f\t", size, timing/1000000);