Browse Source

Make sure we flush the main RAM, since we may not have a worker for doing it

Samuel Thibault 9 years ago
parent
commit
0e11cbdc28
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/workers.c

+ 2 - 0
src/core/workers.c

@@ -1511,6 +1511,8 @@ void starpu_shutdown(void)
 	/* tell all workers to shutdown */
 	_starpu_kill_all_workers(&config);
 
+	_starpu_free_all_automatically_allocated_buffers(STARPU_MAIN_RAM);
+
 	{
 	     int stats = starpu_get_env_number("STARPU_STATS");
 	     if (stats != 0)