I found my mistake. I was using same callback functions in C++ as in C but without using extern "C".
Now it works.
Thanks for your reply.
> Date: Mon, 1 Aug 2011 09:58:13 -0400 > From: email@example.com > To: firstname.lastname@example.org > Subject: Re: [OMPI users] help regarding SELF checkpointing, c or c++ > > There should not be any issue is checkpointing a C++ vs C program > using the 'self' checkpointer. The self checkpointer just looks for a > particular function name to be present in the compiled program binary. > Something to try is to run 'nm' on the compiled C++ program and make > sure that the 'self' checkpointing functions are present in the > output. > > If you can post a small repeater program if the above does not help, > then I can file a ticket and see if someone can take a look. > > Thanks, > Josh > > On Mon, Aug 1, 2011 at 5:16 AM, Faisal Shahzad <email@example.com> wrote: > > Dear Group, > > My question is that, does SELF checkpointing work only with 'c' or also with > > 'c++' program? > > I have a simple program written in 'c'. It makes self-checkpoint (run > > callback functions) when i compile it with mpicc and do checkpointing during > > run. > > But when i convert same program to .cpp, compile with mpiCC and do > > checkpointing again, it makes BLCR checkpoint and not self-checkpoint. > > Thanks in advance. > > Regards, > > Faisal > > > > _______________________________________________ > > users mailing list > > firstname.lastname@example.org > > http://www.open-mpi.org/mailman/listinfo.cgi/users > > > > > > -- > Joshua Hursey > Postdoctoral Research Associate > Oak Ridge National Laboratory > http://users.nccs.gov/~jjhursey > _______________________________________________ > users mailing list > email@example.com > http://www.open-mpi.org/mailman/listinfo.cgi/users