How can I test C \ C ++ code that uses MPI calls: is there any set of mock functions that I can use?

#include <mpi.h>
double f() {
    double timer = MPI_Wtime();
    return timer;
}

What I'm looking for is some set of MPI mock functions, so I can #include <mpi_mocks.h>compile it instead of mpi.h without binding to the MPI library. It could also be something like #define MOCKthat will trigger this behavior in mpi.h.

+5
source share
1 answer

, , # . , - , . , .

+1

All Articles