adding executable
This commit is contained in:
parent
8f0d7d1d3e
commit
e0053c62e1
@ -5,6 +5,7 @@ def main():
|
|||||||
parser = argparse.ArgumentParser(description='TODO')
|
parser = argparse.ArgumentParser(description='TODO')
|
||||||
parser.add_argument('-ho', '--host_dir', required=True)
|
parser.add_argument('-ho', '--host_dir', required=True)
|
||||||
parser.add_argument('-s', '--submit_script', required=True)
|
parser.add_argument('-s', '--submit_script', required=True)
|
||||||
|
parser.add_argument('-ex', '--executable', required=True)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
ndata = [10^4, 10^5, 10^6, 10^7, 10^8]
|
ndata = [10^4, 10^5, 10^6, 10^7, 10^8]
|
||||||
@ -16,7 +17,7 @@ def main():
|
|||||||
for repeat in nrepeat:
|
for repeat in nrepeat:
|
||||||
for machine in machines:
|
for machine in machines:
|
||||||
host_file = os.path.join(args.host_dir, 'host%d' % machine)
|
host_file = os.path.join(args.host_dir, 'host%d' % machine)
|
||||||
cmd = 'python %s %d %s %d %d' % (args.submit_script, machine, host_file, data, repeat)
|
cmd = 'python %s %d %s %s %d %d' % (args.submit_script, machine, host_file, args.executable, data, repeat)
|
||||||
print 'data=%d, repeat=%d, machine=%d' % (data, repeat, machine)
|
print 'data=%d, repeat=%d, machine=%d' % (data, repeat, machine)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user