<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Jayesh,<BR>&nbsp;<BR>when i tried these options i got the message:<BR>&nbsp;<BR>unable to read the cmd header on the pmi context, Error = -1.<br>Error posting readv, An existing connection was forcibly closed by the remote host.(10054)<BR>job aborted:<br>rank: node: exit code[: error message]<br>0: Toufik-PC: 255: process 0 exited without calling finalize<BR>&nbsp;<BR>and&nbsp;about&nbsp;my second question, is it possible?<BR>&nbsp;<BR>best Regards,<BR>Toufik.<br>&nbsp;<BR><div>&gt; Date: Thu, 12 Apr 2012 09:22:52 -0500<br>&gt; From: jayesh@mcs.anl.gov<br>&gt; To: mpich-discuss@mcs.anl.gov<br>&gt; CC: h_toufik7@hotmail.fr<br>&gt; Subject: Re: [mpich-discuss] questions about MPI_Comm_spawn<br>&gt; <br>&gt; Hi,<br>&gt;  Did you try launching your job with the "-localonly" option (Also try "-localroot")?<br>&gt; <br>&gt; Regards,<br>&gt; Jayesh<br>&gt; <br>&gt; ----- Original Message -----<br>&gt; From: "toufik hadjazi" &lt;h_toufik7@hotmail.fr&gt;<br>&gt; To: mpich-discuss@mcs.anl.gov<br>&gt; Sent: Thursday, April 12, 2012 7:34:21 AM<br>&gt; Subject: [mpich-discuss] questions about MPI_Comm_spawn<br>&gt; <br>&gt; <br>&gt; <br>&gt; Hi, <br>&gt; <br>&gt; I am using MPICH2 on windows 7, and I have two questions: <br>&gt; 1- when i try to launch a process with MPI_comm_spawn using MPI_ARGV_NULL, it work normally but when i use an array of arguments the job abort; the call for the function is like that : <br>&gt; <br>&gt; char *arg_array[4]; <br>&gt; for (int i=0; i&lt;4; i++) <br>&gt; arg_array[i] = new char[255]; <br>&gt; <br>&gt; int level = 15, next = 4, range = 5; <br>&gt; itoa(level, arg_array[0], 10); <br>&gt; itoa(next, arg_array[1], 10); <br>&gt; itoa(range, arg_array[2], 10); <br>&gt; <br>&gt; MPI_Comm_spawn("testMPI.exe", arg_array, 1, MPI_INFO_NULL, 0, MPI_COMM_SELF, &amp;intercom, MPI_ERRCODES_IGNORE); <br>&gt; <br>&gt; 2- Is it possible to launch the spawned child on another console (a new console window in the same pc); maybe using the info keys? <br>&gt; <br>&gt; best Regards, <br>&gt; Toufik, <br>&gt; <br>&gt; _______________________________________________<br>&gt; mpich-discuss mailing list     mpich-discuss@mcs.anl.gov<br>&gt; To manage subscription options or unsubscribe:<br>&gt; https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss<br></div>                                               </div></body>
</html>