[OMPI users] Scheduling dynamically spawned processes

2011-05-12 Thread Rodrigo Silva Oliveira
Hi there. I'm developing a distributed system with a communication layer based on Open MPI. As part of my project, I have to create a process scheduler. So I decided to use the MPI_Spawn function to dynamically create (it is an requirement of the system) the process across the cluster's nodes. Is

[OMPI users] Scheduling dynamically spawned processes

2011-05-12 Thread Rodrigo Oliveira
Hi there. I'm developing a distributed system with a communication layer based on Open MPI. As part of my project, I have to create a process scheduler. So I decided to use the MPI_Spawn function to dynamically create (it is an requirement of the system) the process across the cluster's nodes. Is

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-13 Thread Ralph Castain
On May 12, 2011, at 9:53 PM, Rodrigo Silva Oliveira wrote: > Hi there. > > I'm developing a distributed system with a communication layer based on Open > MPI. As part of my project, I have to create a process scheduler. So I > decided to use the MPI_Spawn function to dynamically create (it is

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-13 Thread Rodrigo Silva Oliveira
Hi, I think I was not specific enough. I need to spawn the copies of a process in a unique mpi_spawn call. It is, I have to specify a list of machines and how many copies of the process will be spawned on each one. Is it possible? I would be something like that: machines #copies m1

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-13 Thread Ralph Castain
I believe I answered that question. You can use the hostfile info key, or you can use the host info key - either one will do what you require. On May 13, 2011, at 4:11 PM, Rodrigo Silva Oliveira wrote: > Hi, > > I think I was not specific enough. I need to spawn the copies of a process in > a

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-16 Thread Thatyene Louise Alves de Souza Ramos
Ralph, I have the same issue and I've been searching how to do this, but I couldn't find. What exactly must be the string in the host info key to do what Rodrigo described? <<< Inside your master, you would create an MPI_Info key "host" that has a value <<< consisting of a string "host1,host2,ho

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-16 Thread Ralph Castain
You need to use MPI_Comm_spawn_multiple. Despite the name, it results in a single communicator being created by a single launch - it just allows you to specify multiple applications to run. In this case, we use the same app, but give each element a different "host" info key to get the behavior

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-16 Thread Thatyene Louise Alves de Souza Ramos
Ralph, thank you the reply. I just try what you said and it works! I didn't think to try the array of info arguments because in the spawn_multiple documentation I read the follow: "... *array_of_info*, is an array of *info *arguments; however, *only the first argument in that array is used. Any s

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-17 Thread Ralph Castain
Thanks for pointing this out - it's an error in our man page. I've fixed it on our devel trunk and will get it push'd to the release. On May 16, 2011, at 1:14 PM, Thatyene Louise Alves de Souza Ramos wrote: > Ralph, thank you the reply. > > I just try what you said and it works! I didn't thin

Re: [OMPI users] Scheduling dynamically spawned processes

2011-05-17 Thread Rodrigo Silva Oliveira
Hi Thatyene and Ralph. Now I got the solution and it worked fine. I did not try spawn_multiple because I've read the same documentation Thanks so much! On Tue, May 17, 2011 at 5:13 PM, Ralph Castain wrote: > Thanks for pointing this out - it's an error in our man page. I've > fixed it on