Hi Greg
I am using a open-source software with its own cmake file. I have enabled the debug mode using that cmake file when I built the project. I have added some my own code to the open-source software, but the new added part makes the software can only run in serial.
When I tried to run it with MPI in parallel, it gave me a Segmentation fault. That is why I have to debug. And I have set the break point before the place where Segmentation fault occurs, but I do not know why I can not debug it.
Thanks for your help.
Best wishes
Fan Li
School of Engineering and Materials Science
Queen Mary University of London
London E1 4NS
United Kingdom
From: ptp-user-bounces@xxxxxxxxxxx <ptp-user-bounces@xxxxxxxxxxx> on behalf of Greg Watson <g.watson@xxxxxxxxxxxx>
Sent: 24 July 2020 01:42
To: PTP User list <ptp-user@xxxxxxxxxxx>
Subject: Re: [ptp-user] debug code in Eclipse with MPI support
Hi Fan Li,
Have you compiled the application with debugging enabled (i.e. with -g)?
Regards,
Greg
Dear users
I am using the "eclipse for scientific computing" and want to debug a programme with MPI support.
The programme can run in terminal with mpi in this way
mpirun -np 4 gmx_mpi mdrun -s diff.tpr -c diff.gro -ntomp 1
Accordingly, I set the debug configure as below
<Screenshot from 2020-07-22 16-05-53.png>
<Screenshot from 2020-07-22 16-06-02.png>
<Screenshot from 2020-07-22 16-06-06.png>
After I start debugging, there is no out put from the console and no variable values are displayed.
The below screen shot after debugging
<Screenshot from 2020-07-22 16-18-27.png>
Could you tell me what is wrong?
Best wishes
Fan Li
School of Engineering and Materials Science
Queen Mary University of London
London E1 4NS
United Kingdom
_______________________________________________
ptp-user
mailing list
ptp-user@xxxxxxxxxxx
To
unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user
|