<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=598131220-13052009>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=598131220-13052009> I am not sure if there is an easy way to do the
cleanup. If there are DLLs loaded by the MPI processes the entry point functions
of the DLLs should get called
with "DLL_PROCESS_DETACH".</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=598131220-13052009> You could change the design of your program by
creating a thread to wait for input from the user and terminate job accordingly
(This would be portable too).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=598131220-13052009></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=598131220-13052009>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=598131220-13052009>Jayesh</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> abhishek pandey
[mailto:hipandey@gmail.com] <BR><B>Sent:</B> Wednesday, May 13, 2009 2:32
PM<BR><B>To:</B> Jayesh Krishna<BR><B>Subject:</B> Re: [mpich-discuss] How to
send SIGINT to each process<BR></FONT><BR></DIV>
<DIV></DIV>Hi Jayesh,<BR><BR>My program is designed to run continuously until it
gets SIGINT. On getting ctrl+C, it does some stuffs and then exits. <BR>Now the
onus is, mpiexec just kills the process and my program does not end gracefully.
So I need this signal to be passed to each
process.<BR><BR>Thanks,<BR>Abhishek<BR><BR>
<DIV class=gmail_quote>On Thu, May 14, 2009 at 12:48 AM, Jayesh Krishna <SPAN
dir=ltr><<A
href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2> AFAIK, smpd does not provide a way to send signals like
mpd.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2> Why
do you want to send signals to MPI processes ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Jayesh</FONT></SPAN></DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
href="mailto:mpich-discuss-bounces@mcs.anl.gov"
target=_blank>mpich-discuss-bounces@mcs.anl.gov</A> [mailto:<A
href="mailto:mpich-discuss-bounces@mcs.anl.gov"
target=_blank>mpich-discuss-bounces@mcs.anl.gov</A>] <B>On Behalf Of
</B>abhishek pandey<BR><B>Sent:</B> Wednesday, May 13, 2009 2:07
PM<BR><B>To:</B> <A href="mailto:mpich-discuss@mcs.anl.gov"
target=_blank>mpich-discuss@mcs.anl.gov</A><BR><B>Subject:</B> Re:
[mpich-discuss] How to send SIGINT to each process<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV></DIV>Thanks for quick response. <BR><BR>Forgot to mention last time, I
need to pass SIGINT to each process on window/vista<BR><BR> I am
launching the job with<BR><BR>mpiexec.exe -configfile
<configfile>.<BR><BR>and on each client, smpd.exe is
installed.<BR><BR>Thanks,<BR>Abhishek<BR><BR>
<DIV class=gmail_quote>On Thu, May 14, 2009 at 12:26 AM, Darius Buntinas <SPAN
dir=ltr><<A href="mailto:buntinas@mcs.anl.gov"
target=_blank>buntinas@mcs.anl.gov</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">If
you're using mpd as the job launcher, you should be able to
use<BR>mpdsigjob.<BR><FONT color=#888888><BR>-d<BR></FONT>
<DIV>
<DIV></DIV>
<DIV><BR>On 05/13/2009 01:54 PM, abhishek pandey wrote:<BR>>
Hi,<BR>><BR>> Is there anyway to pass SIGINT signal to each process
from mpiexe ?<BR>><BR>> The problem is whenever I press ctrl+C, mpiexe
kills all the processes<BR>> and I am not able to customize the exit of
my program.<BR>><BR>> I tried to find out the answer on net but dint
get anything.<BR>><BR>> Thanks,<BR>>
Abhishek<BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>