Re: [OMPI users] Troubles using MPI_Isend/MPI_Irecv/MPI_Waitany and MPI_Allreduce

2011-11-13 Thread Pedro Gonnet
Sorry for the long delay on my behalf too. Using MPI_Init_thread with MPI_THREAD_MULTIPLE fixes this problem! Should have had a closer look at the documentation... Cheers, Pedro > Sorry for the delay in replying. > I think you need to use MPI_INIT_THREAD with a level of > MPI_THREAD_MULTIPLE

Re: [OMPI users] Troubles using MPI_Isend/MPI_Irecv/MPI_Waitany and MPI_Allreduce

2011-11-13 Thread Jeff Squyres
Glad it worked! On Nov 13, 2011, at 6:15 AM, Pedro Gonnet wrote: > > Sorry for the long delay on my behalf too. > > Using MPI_Init_thread with MPI_THREAD_MULTIPLE fixes this problem! > Should have had a closer look at the documentation... > > Cheers, > Pedro > > > >> Sorry for the delay in

[OMPI users] Is it not possible to run a program with MPI code without mpirun/mpiexec?

2011-11-13 Thread Naor Movshovitz
I have open-mpi v1.5.4, installed from the binary installer for Windows. The following program test.c #include #include int main(int argc, char *argv[]) { int rank, size; MPI_Init(&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&size); MPI_Comm_rank(MPI_COMM_WORLD,&rank); printf("hellow wor