<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3660" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana color=#0000ff>Nope. Screen output:</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff></FONT> </DIV>
<DIV><IMG src="cid:728242217@05042010-2283"><BR></DIV>
<P><FONT size=2><BR><BR>-----Original Message-----<BR>From:
mpich-discuss-bounces@mcs.anl.gov [<A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>]
On Behalf Of Jayesh Krishna<BR>Sent: Monday, April 05, 2010 10:17 AM<BR>To:
Bakkal, Alex<BR>Cc: mpich-discuss@mcs.anl.gov<BR>Subject: Re: [mpich-discuss]
MPI_Comm_spawn_multiple() fails<BR><BR>Hi,<BR> Does it work if you launch
it using mpiexec (mpiexec -n 1
mpi_spawn.exe)?<BR><BR>Regards,<BR>Jayesh<BR>----- Original Message
-----<BR>From: "Alex Bakkal" <Abakkal@LOANPERFORMANCE.com><BR>To: "Jayesh
Krishna" <jayesh@mcs.anl.gov><BR>Cc: mpich-discuss@mcs.anl.gov<BR>Sent:
Monday, April 5, 2010 12:02:13 PM GMT -06:00 US/Canada Central<BR>Subject: RE:
[mpich-discuss] MPI_Comm_spawn_multiple() fails<BR><BR> Hi,<BR><BR>The
mpi_spawn.cpp is attached. I am calling my app
directly:<BR><BR>D:\Projects\mpi_spawn\Release>mpi_spawn.exe<BR><BR>Thank you
for your help.<BR><BR>Alex<BR><BR>-----Original Message-----<BR>From: Jayesh
Krishna [<A
href="mailto:jayesh@mcs.anl.gov">mailto:jayesh@mcs.anl.gov</A>]<BR>Sent: Monday,
April 05, 2010 7:16 AM<BR>To: Bakkal, Alex<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: Re: [mpich-discuss]
MPI_Comm_spawn_multiple() fails<BR><BR>Hi,<BR> Can you send us the modified
test program (attach it in your email) ?<BR>Also let us know how you ran the
test (the complete mpiexec command).<BR><BR>Regards,<BR>Jayesh<BR>----- Original
Message -----<BR>From: "Alex Bakkal" <Abakkal@LOANPERFORMANCE.com><BR>To:
"Jayesh Krishna" <jayesh@mcs.anl.gov><BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Sent: Friday, April 2, 2010 7:22:21 PM GMT -06:00
US/Canada Central<BR>Subject: RE: [mpich-discuss] MPI_Comm_spawn_multiple()
fails<BR><BR>I am very sorry for misleading you in my previous response. The app
does<BR>NOT run with <BR>char * progs[NHOST] = { "c:\\mpi_spawn" ,
"c:\\mpi_spawn" };<BR><BR>It hangs but at least it spawned two instances of
mpi_spawn.exe<BR><BR>-----Original Message-----<BR>From: Jayesh Krishna [<A
href="mailto:jayesh@mcs.anl.gov">mailto:jayesh@mcs.anl.gov</A>]<BR>Sent: Friday,
April 02, 2010 3:20 PM<BR>To: Bakkal, Alex<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: Re: [mpich-discuss]
MPI_Comm_spawn_multiple() fails<BR><BR><BR> Does,<BR><BR>char *
progs[NHOST] = { "c:\\mpi_spawn" , "c:\\mpi_spawn" };<BR><BR> work for you
?<BR><BR>Regards,<BR>Jayesh<BR>----- Original Message -----<BR>From: "Alex
Bakkal" <Abakkal@LOANPERFORMANCE.com><BR>To: "Jayesh Krishna"
<jayesh@mcs.anl.gov><BR>Cc: mpich-discuss@mcs.anl.gov<BR>Sent: Friday,
April 2, 2010 4:04:11 PM GMT -06:00 US/Canada Central<BR>Subject: RE:
[mpich-discuss] MPI_Comm_spawn_multiple() fails<BR><BR>Yes, spawning one
instance (if you mean that by single program) works fine but spawning two
instances of the same program (even located in two separate folders)
hangs.<BR><BR>char * progs[NHOST] = { "c:\\mpi_spawn" , "c:\\tm\\mpi_spawn"
};<BR><BR>Thank you.<BR><BR>Alex<BR><BR>-----Original Message-----<BR>From:
Jayesh Krishna [<A
href="mailto:jayesh@mcs.anl.gov">mailto:jayesh@mcs.anl.gov</A>]<BR>Sent: Friday,
April 02, 2010 1:59 PM<BR>To: Bakkal, Alex<BR>Cc:
mpich-discuss@mcs.anl.gov<BR>Subject: Re: [mpich-discuss]
MPI_Comm_spawn_multiple() fails<BR><BR>Hi,<BR> I tried spawn() with the
host info set to "localhost" and it worked fine for me (However I spawned using
a single program. Does that work for you ?).<BR><BR>Regards,<BR>Jayesh<BR>-----
Original Message -----<BR>From: "Alex Bakkal"
<Abakkal@LOANPERFORMANCE.com><BR>To: jayesh@mcs.anl.gov,
mpich-discuss@mcs.anl.gov<BR>Sent: Friday, April 2, 2010 3:24:21 PM GMT -06:00
US/Canada Central<BR>Subject: RE: [mpich-discuss] MPI_Comm_spawn_multiple()
fails<BR><BR>Hi Jayesh,<BR><BR>Thank you for response. My test app, as well as
the examples that you have referred me to, works fine locally until I attempt to
set "host"<BR>key in MPI_Info. Unfortunately, I need that key in order to spawn
remotely. That is my ultimate goal.<BR><BR>Thank you
anyway.<BR><BR>Alex<BR><BR>-----Original Message-----<BR>From:
jayesh@mcs.anl.gov [<A
href="mailto:jayesh@mcs.anl.gov">mailto:jayesh@mcs.anl.gov</A>]<BR>Sent: Friday,
April 02, 2010 8:07 AM<BR>To: mpich-discuss@mcs.anl.gov<BR>Cc: Bakkal,
Alex<BR>Subject: Re: [mpich-discuss] MPI_Comm_spawn_multiple()
fails<BR><BR>Hi,<BR> Couple of suggestions,<BR><BR># Does it work if you
use the same command (same program) for all instances of the spawned procs
?<BR># Did you try setting the "path" infos for the commands ?<BR><BR> You
can find some examples at<BR><A
href="https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk/test/mpi/spawn">https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk/test/mpi/spawn</A>
(Look at<BR>spawnminfo1.c) . Let us know the
results.<BR><BR>Regards,<BR>Jayesh<BR>----- Original Message -----<BR>From:
"Alex Bakkal" <Abakkal@LOANPERFORMANCE.com><BR>To:
mpich-discuss@mcs.anl.gov<BR>Sent: Thursday, April 1, 2010 4:58:07 PM GMT -06:00
US/Canada Central<BR>Subject: [mpich-discuss] MPI_Comm_spawn_multiple()
fails<BR><BR><BR><BR>Hello,<BR><BR>I have installed MPICH2 v.1.2.1 on Windows XP
Pro machines and was trying to run the following test app on "mt"
channel:<BR><BR><BR><BR>#define NHOST 2<BR><BR>int main( int argc, char *
argv[]) {<BR><BR>int supported;<BR><BR>int rank, size;<BR><BR>MPI_Comm parent,
intercomm;<BR><BR><BR><BR>MPI_Init_thread(&argc, &argv,
MPI_THREAD_MULTIPLE, &supported);<BR><BR>if (supported !=
MPI_THREAD_MULTIPLE){<BR><BR>printf( "The library does not support
MPI_THREAD_MULTIPLE\n"
);<BR><BR>exit(-1);<BR><BR>}<BR><BR>MPI_Comm_get_parent(&parent);<BR><BR>if
(parent == MPI_COMM_NULL){<BR><BR>int i;<BR><BR>int nproc[NHOST] = {1 , 1
};<BR><BR>char * progs[NHOST] = { "c:\\mpi_spawn" , "c:\\tm\\mpi_spawn"
};<BR><BR><BR><BR>MPI_Info infos[NHOST];<BR><BR><BR><BR>for (i=0; i < NHOST;
i++) {<BR><BR>MPI_Info_create(&infos[i]);<BR><BR>MPI_Info_set(infos[i],
"host" , "localhost"
);<BR><BR>}<BR><BR>MPI_Comm_spawn_multiple(NHOST,<BR><BR>progs, MPI_ARGVS_NULL,
nproc, infos,<BR><BR>0, MPI_COMM_WORLD, &intercomm,
MPI_ERRCODES_IGNORE);<BR><BR>for (i=0; i < NHOST; i++)
{<BR><BR>MPI_Info_free(&infos[i]);<BR><BR>}<BR><BR>}<BR><BR>else
{<BR><BR>intercomm = parent;<BR><BR>}<BR><BR>MPI_Comm_rank(intercomm,
&rank);<BR><BR>MPI_Comm_size(intercomm, &size);<BR><BR>printf( "[%d/%d]
Hello world\n" , rank, size);
fflush(stdout);<BR><BR>MPI_Comm_free(&intercomm);<BR><BR>MPI_Finalize();<BR><BR>return
0;<BR><BR>}<BR><BR>The app hangs. I can see three (as expected) instances of the
program in the Task Manager but MPI_Comm_spawn_multiple() never returns control
to my app.<BR><BR>I have reduced the number of spawned hosts to one and it ran
successfully. Also, it spawned successfully two hosts with the following line
commented out:<BR><BR>//MPI_Info_set(infos[i], "host" , "localhost" );<BR><BR>I
have tried it on two machines with the same result.<BR><BR><BR><BR>Also, I have
tried to spawn just one instance but on the remote host and got the following
error messages:<BR><BR>ERROR:unable to read the cmd header on the pmi context,
Error = -1<BR><BR>ERROR:Error posting ready, An existing connection was forcibly
closed by the remote host.<BR><BR>I am not sure whether that is related to the
first issue?<BR><BR><BR><BR>Any insight would be greately
appreciated.<BR><BR>Thank
you.<BR><BR>Alex<BR><BR>************************************************************************<BR>******************<BR>This
message may contain confidential or proprietary information intended only for
the use of the<BR>addressee(s) named above or may contain information that is
legally privileged. If you are not the intended addressee, or the person
responsible for delivering it to the intended addressee, you are hereby notified
that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately
notify us by replying to the message and delete the original message and any
copies immediately thereafter.<BR><BR>Thank
you.<BR>************************************************************************<BR>******************<BR>FACLD<BR>_______________________________________________<BR>mpich-discuss
mailing list<BR>mpich-discuss@mcs.anl.gov<BR><A
href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A><BR>_______________________________________________<BR>mpich-discuss
mailing list<BR>mpich-discuss@mcs.anl.gov<BR><A
href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A><BR></FONT></P></BODY></HTML>