Browse Source

Make sure the tasks are completely finished before overwriting the codelet structure

Samuel Thibault 8 years ago
parent
commit
8bcad7efab
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/microbenchs/matrix_as_vector.c

+ 1 - 0
tests/microbenchs/matrix_as_vector.c

@@ -173,6 +173,7 @@ end:
 	if (ret == -ENODEV)
 	if (ret == -ENODEV)
 		fprintf(stderr, "# Uh, ENODEV?!");
 		fprintf(stderr, "# Uh, ENODEV?!");
 	starpu_free(matrix);
 	starpu_free(matrix);
+	starpu_task_wait_for_all();
 	return ret;
 	return ret;
 }
 }