浏览代码

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

Samuel Thibault 11 年之前
父节点
当前提交
8606711d0f
共有 1 个文件被更改,包括 3 次插入0 次删除
  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));