Commit f9cfa765 authored by rna's avatar rna

+= optimized parameter for time-* apps

parent e5807511
Pipeline #3262 passed with stages
in 1 minute and 20 seconds
...@@ -24,6 +24,7 @@ struct arguments { ...@@ -24,6 +24,7 @@ struct arguments {
uint16_t size; uint16_t size;
char *outfile; char *outfile;
char *target; char *target;
bool optimized;
bool thread_pinning; bool thread_pinning;
}; };
...@@ -89,6 +90,7 @@ int main(int argc, char **argv) { ...@@ -89,6 +90,7 @@ int main(int argc, char **argv) {
.rounds = 127, .rounds = 127,
.size = 1500, .size = 1500,
.outfile = "-", .outfile = "-",
.optimized = true,
.thread_pinning = false, .thread_pinning = false,
}; };
argp_parse(&argp, argc, argv, 0, 0, &arguments); argp_parse(&argp, argc, argv, 0, 0, &arguments);
......
...@@ -15,6 +15,7 @@ static struct argp_option options[] = { ...@@ -15,6 +15,7 @@ static struct argp_option options[] = {
{"rounds", 'r', "ROUNDS", 0, "Rounds" }, {"rounds", 'r', "ROUNDS", 0, "Rounds" },
{"size", 's', "SIZE", 0, "Size" }, {"size", 's', "SIZE", 0, "Size" },
{"output", 'o', "FILE", 0, "Output to FILE instead of standard output" }, {"output", 'o', "FILE", 0, "Output to FILE instead of standard output" },
{"unoptimized", 'U', 0, 0, "Disable TCP optimizations"},
{"threadpinning", 'T', 0, 0, "Enable thread pinning"}, {"threadpinning", 'T', 0, 0, "Enable thread pinning"},
{ 0 } { 0 }
}; };
...@@ -27,6 +28,7 @@ struct arguments ...@@ -27,6 +28,7 @@ struct arguments
uint16_t rounds; uint16_t rounds;
uint16_t size; uint16_t size;
char* outfile; char* outfile;
bool optimized;
bool thread_pinning; bool thread_pinning;
}; };
...@@ -57,6 +59,9 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) ...@@ -57,6 +59,9 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state)
case 'o': case 'o':
arguments->outfile = arg; arguments->outfile = arg;
break; break;
case 'U':
arguments->optimized = false;
break;
case 'T': case 'T':
arguments->thread_pinning = true; arguments->thread_pinning = true;
break; break;
...@@ -81,6 +86,7 @@ int main(int argc, char **argv) { ...@@ -81,6 +86,7 @@ int main(int argc, char **argv) {
.size = 1500, .size = 1500,
.rounds = 127, .rounds = 127,
.outfile = "-", .outfile = "-",
.optimized = true,
.thread_pinning = false, .thread_pinning = false,
}; };
argp_parse (&argp, argc, argv, 0, 0, &arguments); argp_parse (&argp, argc, argv, 0, 0, &arguments);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment