Re: [OMPI users] Uncommitted MPI_Datatype leaks memory heavily
Get the free out of the #ifndef LEAK and your problem will be solved. for (int i = 0; i< 1000; i++) { MPI_Datatype type; assert( MPI_Type_contiguous( 10 * sizeof(double),
[OMPI users] Uncommitted MPI_Datatype leaks memory heavily
Hello The following program leaks memory if compiled with -DLEAK (uses about 7 GB in the end but less than 20 MB without -DLEAK). #include "assert.h" #include "mpi.h" int main(int argc, char* argv[]) { assert(MPI_Init(&argc, &argv) == MPI_SUCCESS); for (int i = 0; i < 10