[OMPI users] poll taking too long in open-mpi

2011-08-23 Thread Dick Kachuma
I have used gprof to profile a program that uses openmpi. The result shows that the code spends a long time in poll (37% on 8 cores, 50% on 16 and 85% on 32). I was wondering if there is anything I can do to reduce the time spent in poll. I cannot determine the number of calls made to poll and exac

Re: [OMPI users] MPI defined macro

2011-08-23 Thread Jeff Squyres
FWIW, The MPI spec claims the entire "MPI" namespace -- so if an app defines their own "MPI" macro, technically, that's incorrect. :-) On Aug 23, 2011, at 11:52 AM, Gus Correa wrote: > Hi Gabrielle, Jeff > > Not sure if my interjection here may help, > but user-defined macros like this, > appe

Re: [OMPI users] MPI defined macro

2011-08-23 Thread dam...@khubla.com
Guys, Have a look at the MUMPS linear solver code. They define a dummy MPI interface for their serial version. That works well and it's enabled by changing an include path and compiling without mpicc. Damien -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Gus Correa wr

Re: [OMPI users] MPI defined macro

2011-08-23 Thread Gus Correa
Hi Gabrielle, Jeff Not sure if my interjection here may help, but user-defined macros like this, appear in many codes we use here, combined with #ifdef pre-processor directives. This is certainly not new. BTW, the name convention varies, I've seen MPI, USE_MPI, SPMD, MPP, etc. Sometimes this pro

Re: [OMPI users] Documentation of MPI Implementation

2011-08-23 Thread Eugene Loh
On 8/23/2011 12:32 AM, Hoang-Vu Dang wrote: Dear all, Where could I find a detailed documentation about algorithms that has been using in Open MPI ? For example, I would like to answer following questions: how MPI_Algather operation is done? what is the complexity in term of the number of d

Re: [OMPI users] MPI defined macro

2011-08-23 Thread Dave Goodell
This has been discussed previously in the MPI Forum: http://lists.mpi-forum.org/mpi-forum/2010/11/0838.php I think it resulted in this proposal, but AFAIK it was never pushed forward by a regular attendee of the Forum: https://svn.mpi-forum.org/trac/mpi-forum-web/wiki/ReqPPMacro -Dave On Aug

Re: [OMPI users] MPI defined macro

2011-08-23 Thread Jeff Squyres
I unfortunately won't be at the next Forum meeting, but you might want to ask someone to bring it up for you. It might not give you exactly what you want, however, because not all platforms have "mpicc" (or similar) wrapper compilers. I.e., to compile an MPI application on some platforms, you

Re: [OMPI users] MPI defined macro

2011-08-23 Thread Gabriele Fatigati
Can I suggest to insert this macro in next MPI 3 standard? I think It's very useful. 2011/8/23 Jeff Squyres > I'm afraid not. Sorry! :-( > > We have the OPEN_MPI macro -- it'll be defined to 1 if you compile with > Open MPI, but that doesn't really help your portability issue. :-\ > > On Aug

Re: [OMPI users] MPI defined macro

2011-08-23 Thread Jeff Squyres
I'm afraid not. Sorry! :-( We have the OPEN_MPI macro -- it'll be defined to 1 if you compile with Open MPI, but that doesn't really help your portability issue. :-\ On Aug 23, 2011, at 5:19 AM, Gabriele Fatigati wrote: > Dear OpenMPi users, > > is there some portable MPI macro to check if

[OMPI users] MPI defined macro

2011-08-23 Thread Gabriele Fatigati
Dear OpenMPi users, is there some portable MPI macro to check if a code is compiled with MPI compiler? Something like _OPENMP for OpenMP codes: #ifdef _OPENMP #endif it exist? #ifdef MPI #endif Thanks -- Ing. Gabriele Fatigati HPC specialist SuperComputing Applications and

[OMPI users] Documentation of MPI Implementation

2011-08-23 Thread Hoang-Vu Dang
Dear all, Where could I find a detailed documentation about algorithms that has been using in Open MPI ? For example, I would like to answer following questions: how MPI_Algather operation is done? what is the complexity in term of the number of data send/receive given a number of node involved?