<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> <BR>when i tried these options i got the message:<BR> <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> <BR>and about my second question, is it possible?<BR> <BR>best Regards,<BR>Toufik.<br> <BR><div>> Date: Thu, 12 Apr 2012 09:22:52 -0500<br>> From: jayesh@mcs.anl.gov<br>> To: mpich-discuss@mcs.anl.gov<br>> CC: h_toufik7@hotmail.fr<br>> Subject: Re: [mpich-discuss] questions about MPI_Comm_spawn<br>> <br>> Hi,<br>> Did you try launching your job with the "-localonly" option (Also try "-localroot")?<br>> <br>> Regards,<br>> Jayesh<br>> <br>> ----- Original Message -----<br>> From: "toufik hadjazi" <h_toufik7@hotmail.fr><br>> To: mpich-discuss@mcs.anl.gov<br>> Sent: Thursday, April 12, 2012 7:34:21 AM<br>> Subject: [mpich-discuss] questions about MPI_Comm_spawn<br>> <br>> <br>> <br>> Hi, <br>> <br>> I am using MPICH2 on windows 7, and I have two questions: <br>> 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>> <br>> char *arg_array[4]; <br>> for (int i=0; i<4; i++) <br>> arg_array[i] = new char[255]; <br>> <br>> int level = 15, next = 4, range = 5; <br>> itoa(level, arg_array[0], 10); <br>> itoa(next, arg_array[1], 10); <br>> itoa(range, arg_array[2], 10); <br>> <br>> MPI_Comm_spawn("testMPI.exe", arg_array, 1, MPI_INFO_NULL, 0, MPI_COMM_SELF, &intercom, MPI_ERRCODES_IGNORE); <br>> <br>> 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>> <br>> best Regards, <br>> Toufik, <br>> <br>> _______________________________________________<br>> mpich-discuss mailing list mpich-discuss@mcs.anl.gov<br>> To manage subscription options or unsubscribe:<br>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss<br></div>                                            </div></body>
</html>