The easiest way to debug a code is to use a parallel debugger such as DDT or TotalView. Note your vendor might provide its own parallel debugger.
You only need to compile your application with the '-g -O0' flag, run it under the debugger, and wait for the crash. An other option is to do post mortem debugging. Most sites have a default core size equal to zero, so you need to ulimit -c unlimited and then run your application then you can gdb <binary name> <core file name> the 'bt' command can be used to visualize the stack and understand where the crash occurred. I do not know how many MPI tasks you plan to use, but so far it does not crash with 2 MPI taks. With other task counts (i tested 1, 3 and 4), there are several crashes/errors that are caused by your application (e.g. the root cause is not Open MPI) Cheers, Gilles On Fri, Nov 17, 2017 at 4:31 PM, Nitu <yalamanchi.nit...@students.iiit.ac.in> wrote: > > > > -------- Forwarded Message -------- > Subject: <sub.> Request to debug the code > Date: Sat, 18 Nov 2017 04:50:42 +0530 > From: Nitu <yalamanchi.nit...@students.iiit.ac.in> > To: users@lists.open-mpi.org > > I've been trying to find the reason for the error,but unable to do so.It is > showing Signal: segmentation fault and Signal code: Address not > mapped.Please help me debug the code. > > Thanks, > > _______________________________________________ > users mailing list > users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/users _______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users