<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=339423120-13012009><FONT face=Arial
color=#0000ff size=2>Don't know why this may happen. Just do a printf before the
Comm_spawn_multiple to see if the hang occurs even before that, i.e., outside of
MPI.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=339423120-13012009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=339423120-13012009><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Federico Golfrč
Andreasi<BR><B>Sent:</B> Monday, January 12, 2009 4:19 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] array_of_argv
in the MPI_Comm_spawn_multiple<BR></FONT><BR></DIV>
<DIV></DIV>Here I send you a little test program:<BR><BR>- the manager.cpp
file contains the manager part that initializes a Petsc Session, prints some
informations about the command line options and then executes the "worker
program" with MPI_Comm_spawn_multiple. The firts command line option of the
master must the executable name of the worker.<BR>- the worker.cpp file prints
informations about the command line options and exit.<BR><BR>I use MPICH-2 and
Petsc 2.3.3 and the gcc 1.4.2 compiler.<BR><BR><BR>To execute the program I
type:<BR><BR>mpiexec -n 2 ./manager ./worker -arg1 1 -arg2 2 -arg3 3 -arg4 4
-arg5 5 -arg6 6 -arg7 7 -arg8 8 -arg9 9 -arg10 10 -arg11 11 -arg12 12 -arg13
13 -arg14 14 -arg15 15 -arg16 16 -arg17 17 -arg18 18 -arg19 19 -arg20 20
-arg21 21 -arg22 22 -arg23 23 -arg24 24 -arg25 25 -arg26 26 -arg27 27 -arg28
28 -arg29 29 -arg30 30 -arg31 31 -arg32 32 -arg33 33 -arg34 34 -arg35 35
-arg36 36<BR><BR>Stopping at -arg35 35 the program executes.<BR><BR>Thank you
very much!<BR>Federico <BR><BR><BR><BR><BR><BR>
<DIV class=gmail_quote>2009/1/9 Rajeev Thakur <SPAN dir=ltr><<A
href="mailto:thakur@mcs.anl.gov"
target=_blank>thakur@mcs.anl.gov</A>></SPAN><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>Can you
send us a small test program that demonstrates the
error?</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>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2>
<DIV><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>Federico Golfrč Andreasi<BR></DIV><B>Sent:</B> Thursday, January 08,
2009 3:34 AM
<DIV><BR><B>To:</B> <A href="mailto:mpich-discuss@mcs.anl.gov"
target=_blank>mpich-discuss@mcs.anl.gov</A><BR></DIV><B>Subject:</B> Re:
[mpich-discuss] array_of_argv in the
MPI_Comm_spawn_multiple<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV>
<DIV></DIV>I noticed that problem when the argv has dimension more than
about 50 elements and 450 characters.<BR><BR>Thank
you,<BR>Federico<BR><BR><BR><BR>
<DIV class=gmail_quote>2009/1/7 Rajeev Thakur <SPAN dir=ltr><<A
href="mailto:thakur@mcs.anl.gov"
target=_blank>thakur@mcs.anl.gov</A>></SPAN><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>How
big is the argv you are passing?</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>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<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>Federico Golfrč Andreasi<BR><B>Sent:</B> Wednesday, January 07,
2009 4:17 AM<BR><B>To:</B> <A href="mailto:mpich-discuss@mcs.anl.gov"
target=_blank>mpich-discuss@mcs.anl.gov</A><BR><B>Subject:</B>
[mpich-discuss] array_of_argv in the
MPI_Comm_spawn_multiple<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV>
<DIV></DIV>Hi,<BR><BR><BR>
I've a problem in using the MPI_Comm_spawn_multiple.<BR>When I use
that function with a large number of arguments in the array_of_argv
parameter<BR>the program execution freezes in the point.<BR><BR>There
is a maximum length of the argv or a maximum number of elements of
argv that can be used?<BR><BR>Thank
you!<BR>Federico<BR></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>