<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #333399;font-size: 10pt;">Hi,<br>
<br>
I have a master/worker-type program where communications between the master and the worker go through MPI, while TCP is used for the user to communicate with the master. So I need the master to wait for the results of the workers using MPI_Recv (or post non-blocking
recieves and wait on the request) and wait for commands from the user through the TCP.<br>
<br>
Every solutions I can come up with involve setting the TCP socket to non-bvlocking and enter a busy loop (either internal to MPI if I use MPI generalized requests, or external if I alternate MPI_Test_any and try reading on the socket).<br>
<br>
The only other solution I can imagine uses threads (1 thread blocking on MPI_Recv, 1 thread blocking on a TCP read).<br>
<br>
Any other potential solutions?<br>
<br>
Thanks,<br>
Matthieu<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<hr>
</div>
<div style="font-size:13px"><font color="#333399">Matthieu Dorier, PhD </font>
<div style="font-family:Tahoma">
<div><font color="#333399" size="2">Postdoctoral Appointee</font></div>
<div><font color="#333399" size="2">Argonne National Laboratory, MCS</font></div>
<div><font color="#333399" size="2">9700 S Cass Ave, Lemont, IL 60439</font></div>
<div><font color="#333399" size="2">+1 630 252 1515</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>