[mpich-discuss] questions about MPI_Comm_spawn
Jayesh Krishna
jayesh at mcs.anl.gov
Mon Apr 16 12:24:38 CDT 2012
Hi,
There is no option in MPICH2 for you to do that automatically. Did you try "FreeConsole() + AllocConsole()"?
Regards,
Jayesh
----- Original Message -----
From: "toufik hadjazi" <h_toufik7 at hotmail.fr>
To: jayesh at mcs.anl.gov, mpich-discuss at mcs.anl.gov
Sent: Saturday, April 14, 2012 4:59:17 AM
Subject: Re: [mpich-discuss] questions about MPI_Comm_spawn
Hi Jayesh,
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.
Thanks & best Regards,
Toufik.
> Date: Thu, 12 Apr 2012 09:58:59 -0500
> From: jayesh at mcs.anl.gov
> To: mpich-discuss at mcs.anl.gov
> CC: h_toufik7 at hotmail.fr
> Subject: Re: [mpich-discuss] questions about MPI_Comm_spawn
>
> Hi,
> Argh, I missed your first question. The suggestion (-localonly/localroot) was for the second (console...) question.
> 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.
>
> Regards,
> Jayesh
>
> ----- Original Message -----
> From: "toufik hadjazi" <h_toufik7 at hotmail.fr>
> To: mpich-discuss at mcs.anl.gov
> Sent: Thursday, April 12, 2012 9:39:31 AM
> Subject: Re: [mpich-discuss] questions about MPI_Comm_spawn
>
>
>
> Hi Jayesh,
>
> when i tried these options i got the message:
>
> unable to read the cmd header on the pmi context, Error = -1.
> Error posting readv, An existing connection was forcibly closed by the remote host.(10054)
> job aborted:
> rank: node: exit code[: error message]
> 0: Toufik-PC: 255: process 0 exited without calling finalize
>
> and about my second question, is it possible?
>
> best Regards,
> Toufik.
>
>
> > Date: Thu, 12 Apr 2012 09:22:52 -0500
> > From: jayesh at mcs.anl.gov
> > To: mpich-discuss at mcs.anl.gov
> > CC: h_toufik7 at hotmail.fr
> > Subject: Re: [mpich-discuss] questions about MPI_Comm_spawn
> >
> > Hi,
> > Did you try launching your job with the "-localonly" option (Also try "-localroot")?
> >
> > Regards,
> > Jayesh
> >
> > ----- Original Message -----
> > From: "toufik hadjazi" <h_toufik7 at hotmail.fr>
> > To: mpich-discuss at mcs.anl.gov
> > Sent: Thursday, April 12, 2012 7:34:21 AM
> > Subject: [mpich-discuss] questions about MPI_Comm_spawn
> >
> >
> >
> > Hi,
> >
> > I am using MPICH2 on windows 7, and I have two questions:
> > 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 :
> >
> > char *arg_array[4];
> > for (int i=0; i<4; i++)
> > arg_array[i] = new char[255];
> >
> > int level = 15, next = 4, range = 5;
> > itoa(level, arg_array[0], 10);
> > itoa(next, arg_array[1], 10);
> > itoa(range, arg_array[2], 10);
> >
> > MPI_Comm_spawn("testMPI.exe", arg_array, 1, MPI_INFO_NULL, 0, MPI_COMM_SELF, &intercom, MPI_ERRCODES_IGNORE);
> >
> > 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?
> >
> > best Regards,
> > Toufik,
> >
> > _______________________________________________
> > mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> > To manage subscription options or unsubscribe:
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
More information about the mpich-discuss
mailing list