Commit 2597ba17 authored by Aggelos Giantsios's avatar Aggelos Giantsios

Script to run the sequential orbit

parent b7b263c5
......@@ -25,7 +25,7 @@ def run_dist(master, slaves, version, workers, iwp):
reps = 2
iwp = False
max_cpu = 16
versions = ["short", "intermediate", "long"]
versions = ["short"]
master = {"host": "127.0.0.1", "port": 5050}
slaves = [ {"host": "127.0.0.1", "port": 5051}
, {"host": "127.0.0.1", "port": 5052}
......@@ -44,7 +44,8 @@ f = open('statistics.txt', 'w')
for nSlaves in range(1, len(slaves)+1):
for iwp in [False, True]:
for vsn in versions:
for n in range(2, 2*max_cpu+1, 2):
# for n in range(2, 2*max_cpu+1, 2):
n = nSlaves
slvs = slaves[0:nSlaves]
print ("Slaves: %s, Workers: %s, Version: %s, IWP: %s" % (nSlaves, n, vsn, iwp), file=f)
ts = []
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess, time
reps = 1
versions = ["short", "intermediate", "long"]
node = {"host": "127.0.0.1", "port": 5050}
print "Sequential Orbit"
print "----------------------------------------------------------------------"
print "Versions: %s" % versions
print "Repetitions per Configuration: %s" % reps
print "Node @ %s" % node
print "======================================================================"
for vsn in versions:
for rep in range(reps):
print "Version: %s, Execution: %s" % (vsn, rep)
t1 = time.time()
cmd = "./orbit seq %s %s %s > /dev/null" % (vsn, node["host"], node["port"])
p = subprocess.Popen(cmd, shell=True)
p.wait()
t2 = time.time()
print " %s sec(s)" % (t2 - t1)
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