On May 13, 2009, at 2:33 PM, Le Duy Khanh wrote:
Wow, that's great.
You mean that PMPI_* is totally/functionally similar to MPI_*,
right ?
They are actually aliases of each other in Open MPI. See the
profiling chapter in the MPI spec; it's intended that you can
intercept the MPI_* cal
13/09, Jeff Squyres wrote:
From: Jeff Squyres
Subject: Re: [OMPI users] How to override MPI functions such as MPI_Init,
MPI_Recv...
To: "Open MPI Users"
List-Post: users@lists.open-mpi.org
Date: Wednesday, May 13, 2009, 11:43 AM
You could just define your own library with the sam
You could just define your own library with the same signatures as
official MPI functions, and link that into MPI applications. Under
the covers, you invoke the PMPI_* equivalents of each function. Lots
of profiling and analysis tools work this way. For example:
int MPI_Init(int argc, ch
You could use a separate namespace (if you are using C++) and define
your functions there...
Durga
On Wed, May 13, 2009 at 1:20 PM, Le Duy Khanh wrote:
> Dear,
>
> I intend to override some MPI functions such as MPI_Init, MPI_Recv... but I
> don't want to dig into OpenMPI source code.Therefore,
Dear,
I intend to override some MPI functions such as MPI_Init, MPI_Recv... but I
don't want to dig into OpenMPI source code.Therefore, I am thinking of a way to
create a lib called "mympi.h" in which I will #include "mpi.h" to override
those functions. I will create a new interface with exact