Exemple #1
0
def control(s, p, i, r=0):
    b = tl.attach(s, r, None, p)
    admin(s, p, i).run(comm=b)
    tl.detach(b)
Exemple #2
0
def serve(s,r = 0):
    tl.sid,n,p = int(sys.argv[4]),sys.argv[2],sys.argv[3]
    b = tl.attach(s,r,MPI.COMM_SELF.Dup(),p)
    slave(n).run(comm = b,port = p)
    tl.detach(b)
Exemple #3
0
 def connect(self,s,a,sh,r = 0,p = None,i = None,v = True):
     sc = tl.attach(s,r,MPI.COMM_SELF.Dup(),p,i,v)
     schan = self.achan(s,sc,a)
     schan.send(sh)
     self.adjacent.append(s)
     return schan