Explorar o código

Add missing PAPI_shutdown call

Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
77b53a2b89
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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
+
 }
 
 /*