<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br><br>I have write the following code wishing to avoid my main process to abort on an MPI error:<br><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Init(&argc, &argv);</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Comm_rank(MPI_COMM_WORLD, &MPIId);</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Comm_size(MPI_COMM_WORLD, &numprocs);</span><br style="font-family:
courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"> MPI_Comm_set_errhandler(MPI_COMM_WORLD, <span style="font-weight: bold;">MPI_ERRORS_RETURN</span>);</span><br><br>but when I try to terminate a job process on another machine (pcamd3000 is the main machine, pcamd2600 the other. I use Windows XP Pro on both), then the main process abort. Here the error message:<br><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">job aborted:</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">rank: node: exit code[: error message]</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span
style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">0: pcamd3000: 1: Fatal error in MPI_Send: Other MPI error, error stack:</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Send(173).............................: MPI_Send(buf=00B458B0, count=1, MPI_</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">INT, dest=1, tag=0, comm=0x84000000) failed</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPIDI_CH3I_Progress(148)..................: handle_sock_op failed</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0,
255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPIDI_CH3I_Progress_handle_sock_event(497):</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPIDU_Sock_wait(2603).....................: Il nome di rete specificato non è più</span><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"> disponibile. (errno 64)</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">1: pcamd2600: 1: process 1 exited without calling finalize</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">2: pcamd2600: 1</span><br
style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><br>(note that the message: '<span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">Il nome di rete specificato non è più</span><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"> disponibile.' </span>in english is: 'The network name specified is no more available'.)<br><br>What I miss? I have more than one communicator, but I have used MPI_Comm_set_errhandler as well to set their error handler to MPI_ERRORS_RETURN. The code is:<br><br><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">...</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Group_incl(worldGroup, nRanks, ranks, &handle.group);</span><br style="font-family:
courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Comm_create(MPI_COMM_WORLD, handle.group, &handle.comm);</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Comm_set_errhandler(handle.comm, <span style="font-weight: bold;">MPI_ERRORS_RETURN</span>);</span><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">...</span><br><br>I have also tried with MPI_Errhandler_set, but this doesn't help:<br><br style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);"><span style="font-family: courier,monaco,monospace,sans-serif; color: rgb(0, 0, 255);">MPI_Errhandler_set(...,
MPI_ERRORS_RETURN);</span><br>
<br>Any suggestion?<br><br>Thanks,<br><br>- AGPX<br><br><br></div></div><br>
<hr size=1><font face="Arial" size="2"><hr size=1><font face="Arial" size="2">L'email della prossima generazione? Puoi averla con la <a href="http://us.rd.yahoo.com/mail/it/taglines/hotmail/nowyoucan/nextgen/*http://it.docs.yahoo.com/nowyoucan.html">nuova Yahoo! Mail</a></font></body></html>