소스 검색

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

Samuel Thibault 10 년 전
부모
커밋
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)