4 #include <csignal> // sig_atomic_t
7 #include "named_object_list.h"
9 // These classes may use include options.h, so make forward declarations
10 class deployment_generator;
13 // Global parameters, shared by all the processes
17 extern const double load_ratio_threshold;
20 extern std::string program_name;
21 extern int help_requested;
22 extern bool version_requested;
23 extern int option_x; // hidden option, for debugging purpose
25 // Simulation parameters
27 extern volatile sig_atomic_t exit_request;
29 // Platform and deployment
30 extern std::string platform_file;
31 extern std::string deployment_file;
33 // Automatic deployment
36 extern std::string topology;
37 extern unsigned nhosts;
39 extern bool random_distribution;
40 extern unsigned long random_seed;
43 // Load balancing algorithm
44 extern std::string loba_algo;
45 extern bool bookkeeping;
46 extern double min_transfer_amount;
47 extern double max_transfer_amount;
48 extern double min_lb_iter_duration;
50 // Application parameters
51 extern cost_func comp_cost;
52 extern cost_func comm_cost;
53 extern double min_comp_iter_duration;
54 extern unsigned comp_iter_delay;
55 extern double comp_time_delay;
57 // Parameters for the end of the simulation
58 extern unsigned lb_maxiter;
59 extern unsigned comp_maxiter;
60 extern double time_limit;
61 extern bool exit_on_close;
63 // Named parameters lists
64 extern struct loba_algorithms_type:
65 public named_object_list2<process, int, char** > {
66 loba_algorithms_type();
69 extern struct topologies_type:
70 public named_object_list<deployment_generator> {
75 bool parse_args(int* argc, char* argv[]);