Przeglądaj źródła

Use 8MiB stack size by default in simgrid, instead of its default tiny size.

Samuel Thibault 11 lat temu
rodzic
commit
8606711d0f
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      src/core/simgrid.c

+ 3 - 0
src/core/simgrid.c

@@ -100,6 +100,9 @@ int main(int argc, char **argv)
 	/* Versions earlier than 3.9 didn't support our communication tasks */
 	MSG_config("workstation/model", "ptask_L07");
 #endif
+	/* Simgrid uses tiny stacks by default.  This comes unexpected to our users.  */
+	extern xbt_cfg_t _sg_cfg_set;
+	xbt_cfg_set_int(_sg_cfg_set, "contexts/stack_size", 8192);
 
 	/* Load XML platform */
 	_starpu_simgrid_get_platform_path(path, sizeof(path));