Re: [OMPI users] Uncommitted MPI_Datatype leaks memory heavily

2012-05-13 Thread George Bosilca
Get the free out of the #ifndef LEAK and your problem will be solved. george. On May 13, 2012, at 11:18 , Ilja Honkonen wrote: > 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"

[OMPI users] Uncommitted MPI_Datatype leaks memory heavily

2012-05-13 Thread Ilja Honkonen
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

Re: [OMPI users] mpirun error with " The MPI_Comm_f2c() function was called before MPI_INIT was invoked."

2012-05-13 Thread Ralph Castain
I believe the error message is pretty clear, actually - your program needs to call MPI_INIT -before- it calls any MPI function. On May 13, 2012, at 6:37 AM, Dongshan Wei wrote: > Hi All, > > I encountered a question about openmpi running. I have compiled > successfully a paralle VASP program wi

[OMPI users] mpirun error with " The MPI_Comm_f2c() function was called before MPI_INIT was invoked."

2012-05-13 Thread Dongshan Wei
Hi All, I encountered a question about openmpi running. I have compiled successfully a paralle VASP program with openmpi 1.4.2. But when I run the compiled program with mpirun, I got the following information at very beginning: *** The MPI_Comm_f2c() function was called before MPI_INIT was invoke