Re: [OMPI users] MPI_Init() and MPI_Init_thread()

2010-03-09 Thread Yuanyuan ZHANG
Hi all, I can understand the difference between SINGLE and FUNNELED, and why I should use FUNNELED now. Thank you! Yuanyuan

Re: [OMPI users] MPI_Init() and MPI_Init_thread()

2010-03-03 Thread Yuanyuan ZHANG
Hi guys, Thanks for your help, but unfortunately I am still not clear. > You are right Dave, FUNNELED allows the application to have multiple > threads but only the man thread calls MPI. My understanding is that even if I use SINGLE or MPI_Init, I can still have multiple threads if I use OpenMP P

[OMPI users] MPI_Init() and MPI_Init_thread()

2010-03-03 Thread Yuanyuan ZHANG
Hi all, I am a beginner of MPI and a little confused with MPI_Init_thread() function: If we use MPI_Init() or MPI_Init_thread(MPI_THREAD_SINGLE, provided) to initialize MPI environment, when we use OpenMP PARALLEL directive each process is forked to multiple threads and when an MPI function is ca