Skip to content

Commit

Permalink
Add special case of single host, multiple time slices
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack H committed Nov 8, 2019
1 parent 987a06f commit 9b1b84c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/scripts/xtor_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,15 @@ def run_on_hosts(hosts, cmd, user=None, wait=True):
time.sleep(3)

# Configure the X-engines as even/odd correlators
for hn, host in enumerate(hosts):
if (len(hosts) == 1) and (args.timeslices != 1):
for i in range(args.ninstances):
key = 'hashpipe://%s/%d/set' % (host, i)
r.publish(key, 'TIMEIDX=%d' % (hn//nhosts_per_timeslice))
r.publish(key, 'TIMEIDX=%d' % (args.ninstances))
else:
for hn, host in enumerate(hosts):
for i in range(args.ninstances):
key = 'hashpipe://%s/%d/set' % (host, i)
r.publish(key, 'TIMEIDX=%d' % (hn//nhosts_per_timeslice))

# Let the network threads begin processing
for hn, host in enumerate(hosts):
Expand Down

0 comments on commit 9b1b84c

Please sign in to comment.