<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>thanks for your answers, i solved the first problem but not the second one, i think my question wasn't clear enough: i have an application which uses MPI_Comm_spawn, when the call is done the parent and the spwaned child continue to run on the same console (cmd window) but i need to separate them (each one in a separate cmd window), i don't know if this is possible.<BR> <BR>Thanks & best Regards,<BR>Toufik.<br> <BR><div>> Date: Thu, 12 Apr 2012 09:58:59 -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>> Argh, I missed your first question. The suggestion (-localonly/localroot) was for the second (console...) question.<br>> Please take a look at "https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk/test/mpi/spawn/spawnargv.c" for information on how to pass arguments to spawn.<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 9:39:31 AM<br>> Subject: Re: [mpich-discuss] questions about MPI_Comm_spawn<br>> <br>> <br>> <br>> 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>> <br>> > 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>> <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>