Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-25 Thread Jeff Squyres
Ah ha! It turns out that the MPI spec specifically states that the user's code has to add a blank string at the end of the array to indicate the end. Specifically (as was just quoted to me), MPI-2.2, p310:18-25 defines: "The argv argument argv is an array of strings containing arguments that a

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-25 Thread Jeff Squyres
(somehow I apparently never sent this mail! It's been sitting in my drafts folder for weeks. To followup what I said below: I sent a question about this issue to the MPI-3 Fortran working group -- to see exactly what *should* be the right thing to do: http://lists.mpi-forum.org/mpi3-fortran/20

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-07 Thread Noam Bernstein
I haven't been following this whole discussion, but I do know something about how Fortran allocates and passes string argument (the joys of Fortran/C/python inter-language calls), for what it's worth. By definition in the Fortran language all strings have a predefined length, which Fortran magic

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-07 Thread Andrew J Marquis
Dear Jeff, following the failure I just reported I changed the CC=icc to CC=cc and reran and got this: fred@prandtl:~/test/fortran-c-2d-char> make CC=cc FC=ifort cc -g -c -o c_func.o c_func.c ifort -g main.o c_func.o -g -o main fred@prandtl:~/test/fortran-c-2d-char> ./main Got leading dimen

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-07 Thread Andrew J Marquis
Dear Jeff, thats odd !! fred@prandtl:~/test/fortran-c-2d-char> make CC=icc FC=ifort ifort -g -c -o main.o main.f icc -g -c -o c_func.o c_func.c Error: A license for CComp is not available (-5,357). I will look into this tomorrow, time for bed I am afraid !! Fred Marquis. On Fri, May 0

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-07 Thread Jeff Squyres
Yoinks; I missed that -- sorry! Here's a simple tarball; can you try this with your compiler? Just untar it and make CC=icc FC=ifort ./main Do you see only 6 entries in the array? (I have icc 9.0, but I'm now running RHEL 5.4, and the gcc version with it is too new for icc 9.0 -- so I can

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-07 Thread Andrew J Marquis
Dear Jeff, am afraid not, as I said in my original post I am using the Intel ifort compiler version 9.0, i.e. fred@prandtl:~> mpif77 -V Intel(R) Fortran Compiler for Intel(R) EM64T-based applications, Version 9.0 Build 20060222 Package ID: Copyright (C) 1985-2006 Intel Corporation. Al

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-07 Thread Jeff Squyres
Greetings Fred. After looking at this for more hours than I'd care to admit, I'm wondering if this is a bug in gfortran. I can replicate your problem with a simple program on gfortran 4.1 on RHEL 5.4, but it doesn't happen with the Intel Fortran compiler (11.1) or the PGI fortran compiler (10.

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-05 Thread Ralph Castain
Ah, missed that - afraid I no speakee fortran any more (thankfully got to remove that module from my brain 20+ years ago). On May 5, 2010, at 1:18 PM, Andrew J Marquis wrote: > Dear Ralph, > > thanks for that. I have done much the same (as I indicated in my original > post). I this case my C-

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-05 Thread Andrew J Marquis
Dear Ralph, thanks for that. I have done much the same (as I indicated in my original post). I this case my C-program correctly spawned the slaves and the slaves printed the correctly passed argument lists. On running this and my fortran slave I get: nsize, mytid: iargs 2

Re: [OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-05 Thread Ralph Castain
I think OMPI is okay - here is a C sample program and the associated output: $ mpirun -np 3 ./spawn_multiple Parent [pid 98895] about to spawn! Parent [pid 98896] about to spawn! Parent [pid 98897] about to spawn! Parent done with spawn Parent sending message to children Parent done with spawn Par

[OMPI users] Problem with mpi_comm_spawn_multiple

2010-05-05 Thread Fred Marquis
Hi, I am using mpi_comm_spawn_multiple to spawn multiple commands with argument lists. I am trying to do this in fortran (77) using version openmpi-1.4.1 and the ifort compiler v9.0. The operating system is SuSE Linux 10.1 (x86-64). I have put together a simple controlling example program (te

Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_fre

2009-03-11 Thread Ralph Castain
this error with version 1.2.8. Thank you. Regards, Wenkai --- On Tue, 10/3/09, Lenny Verkhovsky wrote: From: Lenny Verkhovsky Subject: Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_fre To: "Open MPI Users" Date: Tuesday, 10 March, 2009, 11:48 PM can yo

Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_fre

2009-03-11 Thread Tee Wen Kai
version 1.2.8.   Thank you.   Regards, Wenkai --- On Tue, 10/3/09, Lenny Verkhovsky wrote: From: Lenny Verkhovsky Subject: Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_fre To: "Open MPI Users" List-Post: users@lists.open-mpi.org Date: Tuesday, 10 March, 2009, 11:48

Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_fre

2009-03-10 Thread Lenny Verkhovsky
can you try Open MPI 1.3, Lenny. On 3/10/09, Tee Wen Kai wrote: > > Hi, > > I am using version 1.2.8. > > Thank you. > > Regards, > Wenkai > > --- On *Mon, 9/3/09, Ralph Castain * wrote: > > > From: Ralph Castain > Subject: Re: [OMP

Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_free

2009-03-09 Thread Tee Wen Kai
Hi,   I am using version 1.2.8.   Thank you.   Regards, Wenkai --- On Mon, 9/3/09, Ralph Castain wrote: From: Ralph Castain Subject: Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_free To: "Open MPI Users" List-Post: users@lists.open-mpi.org Date: Monday, 9

Re: [OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_free

2009-03-09 Thread Ralph Castain
Could you tell us what version of Open MPI you are using? It would help us to provide you with advice. Thanks Ralph On Mar 9, 2009, at 2:18 AM, Tee Wen Kai wrote: Hi, I have a program that allow user to enter their choice of operation. For example, when the user enter '4', the program wil

[OMPI users] Problem with MPI_Comm_spawn_multiple & MPI_Info_free

2009-03-09 Thread Tee Wen Kai
Hi,   I have a program that allow user to enter their choice of operation. For example, when the user enter '4', the program will enter a function which will spawn some other programs stored in the same directory. When the user enter '5', the program will enter another function to request all sp