[mpich-discuss] How can one test C\C++ code which uses MPI calls: is there any set of mock functions, that I can use?

Jeff Hammond jhammond at alcf.anl.gov
Thu Jan 24 09:35:07 CST 2013


I recall that both LAMMPS and PETSc have a stub MPI implementation,
although I've only read the latter.  I doubt either is complete but
rather contains only a set of necessary MPI-1 routines.

Jeff

On Thu, Jan 24, 2013 at 7:17 AM, Anton Daneyko <self at mezhaka.com> wrote:
> Here's an example:
>
> #include <mpi.h>
> double f() {
>     double timer = MPI_Wtime();
>     return timer;
> }
>
> What I am searching for is some set of mock MPI functions, so I can #include
> <mpi_mocks.h> instead of mpi.h and get it compiled without linking to MPI
> library. It could also be something like #define MOCK which will trigger
> this behavior in mpi.h. It feels, like I've stumbled on something like this,
> but I cannot find it right now.
>
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss



-- 
Jeff Hammond
Argonne Leadership Computing Facility
University of Chicago Computation Institute
jhammond at alcf.anl.gov / (630) 252-5381
http://www.linkedin.com/in/jeffhammond
https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond



More information about the discuss mailing list