Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 8b9a9b22 authored by Thomas Lavocat's avatar Thomas Lavocat
Browse files

Forgot ipc

parent c4aec808
......@@ -99,7 +99,10 @@ class MPIHook(Thread) :
rank = decoded_message[consts.RANK]
logger.info(consts.bold("-> new registration {}".format(rank)))
socket = self.context.socket(zmq.PUSH)
socket.connect("ipc:///tmp/{}".format(decoded_message[consts.PORT]))
if self.is_ipc :
socket.connect("ipc:///tmp/{}".format(decoded_message[consts.PORT]))
else :
socket.connect("tcp://127.0.0.1:{}".format(decoded_message[consts.PORT]))
self.subscriber[rank] = socket
# advertise the root node
message = json.dumps({consts.ACTION:consts.MPIREG,consts.RANK:rank})
......
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