-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathrunall.py
32 lines (31 loc) · 899 Bytes
/
runall.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"framework",
type=str,
help="The framework to evaluate as defined by default in resources/frameworks.yaml.",
)
parser.add_argument(
"benchmark",
type=str,
nargs="?",
default="test",
help="The benchmark type to run as defined by default in resources/benchmarks/{benchmark}.yaml.",
)
parser.add_argument(
"-m",
"--mode",
choices=["local", "docker", "aws"],
default="local",
help="The mode that specifies how/where the benchmark tasks will be running. Defaults to %(default)s.",
)
parser.add_argument(
"-p",
"--parallel",
metavar="parallel_jobs",
type=int,
default=1,
help="The number of jobs (i.e. tasks or folds) that can run in parallel. Defaults to %(default)s. "
"Currently supported only in docker and aws mode.",
)
args = parser.parse_args()