浏览代码

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

Samuel Thibault 9 年之前
父节点
当前提交
0e11cbdc28
共有 1 个文件被更改,包括 2 次插入0 次删除
  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)