Explorar el Código

Make sure we wait for complete termination of all tasks before cleaning them

Samuel Thibault hace 13 años
padre
commit
1315d99763
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      tests/microbenchs/tasks_overhead.c

+ 2 - 0
tests/microbenchs/tasks_overhead.c

@@ -155,6 +155,8 @@ int main(int argc, char **argv)
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_tag_wait");
 	gettimeofday(&end_exec, NULL);
 
+	starpu_task_wait_for_all();
+
 	for (i = 0; i < ntasks; i++)
 		starpu_task_clean(&tasks[i]);