changing number of repetitions
This commit is contained in:
parent
9ed59e71f6
commit
659b9cd517
@ -8,17 +8,16 @@ def main():
|
|||||||
parser.add_argument('-ex', '--executable', 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]
|
||||||
nrepeat = [10^2, 10^3, 10^4, 10^5]
|
nrepeat = [10**4, 10**3, 10**2, 10]
|
||||||
|
|
||||||
machines = [2,4,8,16,31]
|
machines = [2,4,8,16,31]
|
||||||
|
|
||||||
for data in ndata:
|
for i, data in enumerate(ndata):
|
||||||
for repeat in nrepeat:
|
|
||||||
for machine in machines:
|
for machine in machines:
|
||||||
host_file = os.path.join(args.host_dir, 'hosts%d' % machine)
|
host_file = os.path.join(args.host_dir, 'hosts%d' % machine)
|
||||||
cmd = 'python %s %d %s %s %d %d' % (args.submit_script, machine, host_file, args.executable, data, repeat)
|
cmd = 'python %s %d %s %s %d %d' % (args.submit_script, machine, host_file, args.executable, data, nrepeat[i])
|
||||||
print 'data=%d, repeat=%d, machine=%d' % (data, repeat, machine)
|
print 'data=%d, repeat=%d, machine=%d' % (data, nrepeat[i], machine)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user