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
(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
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
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
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
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
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
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.
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-
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
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
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
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
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
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
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
16 matches
Mail list logo