#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.
As far as I can see, there are no mocks you could just #include and be done. However, it should be no big deal to write the needed functions yourself and for whichever mocking framework you chose to use. Just start with an empty header and look which functions you compiler complains about.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With