Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread Edscott Wilson
Pvm is not dead. It's "stable". 2013/6/6 Jeff Squyres (jsquyres) > The traditional way to do this stuff in MPI is > > If rank==0 do_master_stuff > Else do_slave_stuff > > Sounds like that pattern should apply to your app. > > Pvm has been dead for years. > > Sent from my phone. No type good

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread Jeff Squyres (jsquyres)
The traditional way to do this stuff in MPI is If rank==0 do_master_stuff Else do_slave_stuff Sounds like that pattern should apply to your app. Pvm has been dead for years. Sent from my phone. No type good. On Jun 6, 2013, at 9:43 AM, "Ralph Castain" mailto:r...@open-mpi.org>> wrote: I hone

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread George Bosilca
What wrong with only allowing the rank 0 to execute the code before and after the funcCompScalapack function as indicated in the example below: int main() { //Initialize MPI MPI_Init(NULL,NULL); MPI_Comm_rank(MPI_COMM_WORLD, &myrank); if( 0 == rank ) { //some work that mu

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread Ralph Castain
I honestly don't know - you'd have to look at the PVM docs. You also might look at OpenMP and try doing it with multiple threads instead of processes, though that limits you to running on a single node. On Jun 6, 2013, at 9:37 AM, José Luis García Pallero wrote: > 2013/6/6 Ralph Castain > >

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread José Luis García Pallero
2013/6/6 Ralph Castain > > On Jun 6, 2013, at 8:58 AM, José Luis García Pallero > wrote: > > 2013/6/6 Ralph Castain > >> should work! >> > > Thank you for your answer. > > So I understand that MPI_Comm_spawn() is my function. But I see in the > documentation that the first argument is char* com

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread Ralph Castain
On Jun 6, 2013, at 8:58 AM, José Luis García Pallero wrote: > 2013/6/6 Ralph Castain > should work! > > Thank you for your answer. > > So I understand that MPI_Comm_spawn() is my function. But I see in the > documentation that the first argument is char* command, and command is the > name

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread José Luis García Pallero
2013/6/6 Ralph Castain > should work! > Thank you for your answer. So I understand that MPI_Comm_spawn() is my function. But I see in the documentation that the first argument is char* command, and command is the name of the program to spawn, but I not want to execute an external program. Only

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread Ralph Castain
should work! On Jun 6, 2013, at 8:24 AM, José Luis García Pallero wrote: > 2013/6/6 Ralph Castain > Afraid not. You could start a single process, and then have that process call > MPI_Comm_spawn to launch the rest of them > > Mmmm... sounds good > > I'm writing an example program using ScaL

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread José Luis García Pallero
2013/6/6 Ralph Castain > Afraid not. You could start a single process, and then have that process > call MPI_Comm_spawn to launch the rest of them > Mmmm... sounds good I'm writing an example program using ScaLAPACK. I have written the ScaLAPACK code in an independent function that must be call

Re: [OMPI users] Set number of processes in another way than -np X

2013-06-06 Thread Ralph Castain
Afraid not. You could start a single process, and then have that process call MPI_Comm_spawn to launch the rest of them On Jun 6, 2013, at 7:54 AM, José Luis García Pallero wrote: > Hello: > > I'm newbie in the use of MPI, so probably I ask some stupid question (or > previously asked, but in