浏览代码

Add missing PAPI_shutdown call

Samuel Thibault 4 年之前
父节点
当前提交
77b53a2b89
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/profiling/profiling.c

+ 5 - 0
src/profiling/profiling.c

@@ -240,6 +240,11 @@ void _starpu_profiling_terminate(void)
 	{
 		STARPU_PTHREAD_MUTEX_DESTROY(&worker_info_mutex[worker]);
 	}
+#ifdef STARPU_PAPI
+	/* free the resources used by PAPI */
+	PAPI_shutdown();
+#endif
+
 }
 
 /*