Quellcode durchsuchen

Warn when the lots of stacks malloc()-ated by simgrid for transfer processes will take a long time to get initialized

Samuel Thibault vor 10 Jahren
Ursprung
Commit
9ccf48f744
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      src/core/workers.c

+ 4 - 0
src/core/workers.c

@@ -1047,6 +1047,10 @@ int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv)
 #endif
 #ifdef STARPU_SIMGRID
 	_starpu_simgrid_init();
+	/* Warn when the lots of stacks malloc()-ated by simgrid for transfer
+	 * processes will take a long time to get initialized */
+	if (getenv("MALLOC_PERTURB_"))
+		_STARPU_DISP("Warning: MALLOC_PERTURB_ is set, this makes simgrid runs very slow\n");
 #else
 #ifdef __GNUC__
 #ifndef __OPTIMIZE__