Bladeren bron

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

Samuel Thibault 10 jaren geleden
bovenliggende
commit
9ccf48f744
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  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__