Explorar o código

no need to test for stats env variable, starpu_bus_profiling_helper_display_summary and starpu_worker_profiling_helper_display_summary already test them

Samuel Thibault %!s(int64=12) %!d(string=hai) anos
pai
achega
d8b354babf
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  1. 2 6
      src/core/workers.c

+ 2 - 6
src/core/workers.c

@@ -941,12 +941,8 @@ static void _starpu_kill_all_workers(struct _starpu_machine_config *config)
 
 void starpu_display_stats()
 {
-	const char *stats;
-	if ((stats = getenv("STARPU_BUS_STATS")) && atoi(stats))
-		starpu_bus_profiling_helper_display_summary();
-
-	if ((stats = getenv("STARPU_WORKER_STATS")) && atoi(stats))
-		starpu_worker_profiling_helper_display_summary();
+	starpu_bus_profiling_helper_display_summary();
+	starpu_worker_profiling_helper_display_summary();
 }
 
 void starpu_shutdown(void)