6 #include "named_object_list.h"
8 // These classes may use include options.h, so make forward declarations
9 class deployment_generator;
12 // Global parameters, shared by all the processes
16 extern const double load_ratio_threshold;
19 extern std::string program_name;
20 extern int help_requested;
21 extern bool version_requested;
23 // Simulation parameters
25 extern bool exit_request;
27 // Platform and deployment
28 extern std::string platform_file;
29 extern std::string deployment_file;
31 // Automatic deployment
34 extern std::string topology;
35 extern unsigned nhosts;
37 extern bool random_distribution;
38 extern unsigned long random_seed;
41 // Load balancing algorithm
42 extern std::string loba_algo;
43 extern bool bookkeeping;
44 extern double min_transfer_amount;
45 extern double max_transfer_amount;
46 extern double min_lb_iter_duration;
48 // Application parameters
49 extern cost_func comp_cost;
50 extern cost_func comm_cost;
51 extern double min_comp_iter_duration;
52 extern unsigned comp_iter_delay;
53 extern double comp_time_delay;
55 // Parameters for the end of the simulation
56 extern unsigned lb_maxiter;
57 extern unsigned comp_maxiter;
58 extern double time_limit;
59 extern bool exit_on_close;
61 // Named parameters lists
62 extern struct loba_algorithms_type:
63 public named_object_list2<process, int, char** > {
64 loba_algorithms_type();
67 extern struct topologies_type:
68 public named_object_list<deployment_generator> {
73 bool parse_args(int* argc, char* argv[]);