Sfoglia il codice sorgente

move profiling initialization after topology initialization

Now that papi allocates data from the profiling initialization, we
shouldn't do it if topology initialization returns -ENODEV.
Samuel Thibault 5 anni fa
parent
commit
e39800b779
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/core/workers.c

+ 2 - 2
src/core/workers.c

@@ -1555,8 +1555,6 @@ int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv)
 
 	_starpu_timing_init();
 
-	_starpu_profiling_init();
-
 	_starpu_load_bus_performance_files();
 
 	/* Depending on whether we are a MP sink or not, we must build the
@@ -1587,6 +1585,8 @@ int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv)
 		return ret;
 	}
 
+	_starpu_profiling_init();
+
 	_starpu_task_init();
 
 	for (worker = 0; worker < _starpu_config.topology.nworkers; worker++)