X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/29a3b2869c0075fc75e8ccc66fc1d9c4c8bf6a85..49ff77f9efbcb4dfeb0600186571fcf9a224f4f3:/src/simgrid/sg_config.cpp diff --git a/src/simgrid/sg_config.cpp b/src/simgrid/sg_config.cpp index 553d43f539..6358b596a1 100644 --- a/src/simgrid/sg_config.cpp +++ b/src/simgrid/sg_config.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -69,7 +69,7 @@ static void sg_config_cmd_line(int *argc, char **argv) simgrid::config::set_parse(opt); XBT_DEBUG("Did apply '%s' as config setting", opt); } else if (parse_args && not strcmp(argv[i], "--version")) { - printf("%s\n", SIMGRID_VERSION_STRING); + sg_version(); shall_exit = true; } else if (parse_args && (not strcmp(argv[i], "--cfg-help") || not strcmp(argv[i], "--help"))) { printf("Description of the configuration accepted by this simulator:\n"); @@ -319,8 +319,8 @@ void sg_config_init(int *argc, char **argv) extern bool _sg_do_verbose_exit; simgrid::config::bind_flag(_sg_do_verbose_exit, "verbose-exit", "Activate the \"do nothing\" mode in Ctrl-C"); - simgrid::config::declare_flag("contexts/stack-size", "Stack size of contexts in KiB", 8 * 1024, - [](int value) { smx_context_stack_size = value * 1024; }); + simgrid::config::declare_flag("contexts/stack-size", "Stack size of contexts in KiB (not with threads)", + 8 * 1024, [](int value) { smx_context_stack_size = value * 1024; }); simgrid::config::alias("contexts/stack-size", {"contexts/stack_size"}); /* guard size for contexts stacks in memory pages */ @@ -344,7 +344,7 @@ void sg_config_init(int *argc, char **argv) /* synchronization mode for parallel user contexts */ #if HAVE_FUTEX_H std::string default_synchro_mode = "futex"; -#else //No futex on mac and posix is unimplememted yet +#else // No futex on mac and posix is unimplemented yet std::string default_synchro_mode = "busy_wait"; #endif simgrid::config::declare_flag("contexts/synchro", "Synchronization mode to use when running contexts in "