Skip to content

Commit a599f5f

Browse files
committed
remove all plotting remnants
1 parent ce105ab commit a599f5f

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

libexec/scaling

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@
33
def cli():
44
import os,sys,argparse
55
cli = argparse.ArgumentParser(description='CLARA scaling test')
6-
cli.add_argument('-P',help='plot only',action='store_true')
7-
cli.add_argument('-y',help='YAML file',default=None)
6+
cli.add_argument('-y',help='YAML file',required=True)
87
cli.add_argument('-c',help='CLARA_HOME path',default=os.getenv('CLARA_HOME',None))
98
cli.add_argument('-t',help='threads (default=4,8)',default='4,8')
109
cli.add_argument('-e',help='events per thread',default=100,type=int)
11-
cli.add_argument('-i',help='input data file',default=None)
10+
cli.add_argument('-i',help='input data file',required=True)
1211
cfg = cli.parse_args()
1312
cfg.t = cfg.t.split(',')
14-
if cfg.P:
15-
cfg.i = 'scaling.txt'
16-
else:
17-
if cfg.y is None: sys.exit('-y YAML is required w/o -P')
18-
if cfg.c is None: sys.exit('-c or $CLARA_HOME is required w/o -P')
19-
if cfg.i is None: sys.exit('-i is required')
13+
if cfg.c is None: sys.exit('-c or $CLARA_HOME is required.')
2014
return cfg
2115

2216
def run(cmd):
@@ -106,10 +100,9 @@ def save(benchmarks):
106100

107101
if __name__ == '__main__':
108102
cfg = cli()
109-
if not cfg.P:
110-
benchmarks = []
111-
for threads in cfg.t:
112-
benchmarks.append([threads, benchmark(cfg, threads)])
113-
show(benchmarks)
114-
save(benchmarks)
103+
benchmarks = []
104+
for threads in cfg.t:
105+
benchmarks.append([threads, benchmark(cfg, threads)])
106+
show(benchmarks)
107+
save(benchmarks)
115108

0 commit comments

Comments
 (0)