Explorar o código

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

Samuel Thibault %!s(int64=11) %!d(string=hai) anos
pai
achega
8606711d0f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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));