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"
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
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
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