Re: [OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-19 Thread Jeff Squyres
On Aug 18, 2009, at 8:39 AM, Federico Golfrè Andreasi wrote: I think I've solved my problem: in the previous code the arguments of the MPI_Comm_spawn_multiple where filled only by the "root" process not by all the process in the group. Now all the ranks have all that information and the spa

Re: [OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-18 Thread Ralph Castain
BTW: I did see one issue in your program. In the program that isn't working, you declare the various input arrays for MPI_Comm_spawn_multiple, but only the manager rank=0 ever initializes them. Thus, the other manager ranks were passing random garbage down to the function. Even though only the roo

Re: [OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-18 Thread Ralph Castain
By any chance did you have the flag on to check MPI parameters? I think we have a bug in there that might be causing what you saw, but it would only be active if you had requested that OMPI check parameters. Thanks Ralph 2009/8/18 Federico Golfrè Andreasi > That's is you've done: the worker pr

Re: [OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-18 Thread Federico Golfrè Andreasi
That's is you've done: the worker program spawned and the two versions of the manager that call the spawning. I you find something wrong please let me know. Thank you, Federico 2009/8/18 Ralph Castain > > > Only the root process needs to provide the info keys for spawning anything. >

Re: [OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-18 Thread Ralph Castain
Only the root process needs to provide the info keys for spawning anything. If that isn't correct, then we have a bug. Could you send us a code snippet that shows what you were doing? Thanks Ralph 2009/8/18 Federico Golfrè Andreasi > I think I've solved my problem: > > in the previous c

Re: [OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-18 Thread Federico Golfrè Andreasi
I think I've solved my problem: in the previous code the arguments of the MPI_Comm_spawn_multiple where filled only by the "root" process not by all the process in the group. Now all the ranks have all that information and the spawn is done correctly. But I read on http://www.mpi-forum.org/docs/mp

Re: [OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-18 Thread Jeff Squyres
On Aug 18, 2009, at 5:12 AM, Federico Golfrè Andreasi wrote: In the info object I only set the "host" key (after creatig the object with the MPI_Info_create). I've modified my code to leave out that request and created the array of Info object as an array of MPI_INFO_NULL but the problem is

[OMPI users] Invalid info object in MPI_Comm_spawn_multiple

2009-08-18 Thread Federico Golfrè Andreasi
In the info object I only set the "host" key (after creatig the object with the MPI_Info_create). I've modified my code to leave out that request and created the array of Info object as an array of MPI_INFO_NULL but the problem is still the same. The error is thrown only when running with more tha

Re: [OMPI users] Invalid Info object in MPI_Comm_spawn_multiple

2009-08-17 Thread Jeff Squyres
Are you initializing your MPI_Info object? Remember that -- at a minimum -- you need to call MPI_INFO_CREATE on an MPI_Info object (or pass MPI_INFO_NULL). On Aug 17, 2009, at 11:28 AM, Federico Golfrè Andreasi wrote: Hi! I have a little code that uses the MPI_Comm_spawn_multiple, I've us

Re: [OMPI users] Invalid Info object in MPI_Comm_spawn_multiple

2009-08-17 Thread Ralph Castain
We tried to make the most common info_keys the same, but there can be differences. What info keys are you trying to pass? 2009/8/17 Federico Golfrè Andreasi > Hi! > > I have a little code that uses the MPI_Comm_spawn_multiple, > I've used it without any problems with the MPICH2 and MVAPICH2 > i

[OMPI users] Invalid Info object in MPI_Comm_spawn_multiple

2009-08-17 Thread Federico Golfrè Andreasi
Hi! I have a little code that uses the MPI_Comm_spawn_multiple, I've used it without any problems with the MPICH2 and MVAPICH2 implementation of MPI-2, but with the Open MPI v1.3.3 it throws this error: *** An error occurred in MPI_Comm_spawn_multiple *** on communicator MPI_COMM_WORLD *** MPI_ER