Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] debug code in Eclipse with MPI support
  • From: Fan Li <f.li@xxxxxxxxxx>
  • Date: Fri, 24 Jul 2020 10:05:58 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=qmul.ac.uk; dmarc=pass action=none header.from=qmul.ac.uk; dkim=pass header.d=qmul.ac.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RhTz278EjwhyskdAbLSAKCCUf6QvKVZkZXwJXtcGIfc=; b=BLm3O4q1OhcfMXmU73t2xeEkye/DMtd48m6WkanGLQ1IKf1F6ehQJCNmkBTS5c0KIoq5REouJt2JojRb2V2Hgv0d6RIZTh93TrwGPWE45k1AOIV5/7F8Kpf4s0jjqHFMSwX7U+thaLl9nJhbChRLwQwIH3hxKbdApRPA+xXIFZGi1wDS7j4NaHynSpus5GN1b3/+NFZryoMSSjnnPlmUzaQ/zMx9zVCE0BWD3yXfc+2DmCTOO30mnEUNsB8zvJq5wUs38V2ihhZU0rIrc3dlGll1/N82DCnWYzE2JMv3nW21bTIQfG6VmOac4gxQHWb4DyVEnyhg1whS7drxyiWmug==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KLOlJ/jiHFH4kO96ZRP+O/8wBHDMBSqNdsEPzslYtjGq39bAhOwFMjJuy/seDUxXokZZAYCdFi9LqE4LPv4bH4svhubmqx0kMN9a9fRumHvPjC3/a/cocHtd52SRSaQZVSuQCUVCQYe+90GB/FGuAQ8oCGtRPK+ooaYDg9FEpuVga65RtNnzsB8xOpFRJP7hmC+rmSnJfCDuwXxJjnp1phCg50d+h7x7NYpU/vwYHaTJKEyjeLE2fjoEaTfrGmqOWw6osf1UcMxCGF9QFuPkWeNgN0nsixwNbO+gvR5kIf4ziXewC3XEdG45OZjyAGppsw+QJCSj9OliK8cXD9tB+g==
  • Delivered-to: ptp-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/ptp-user>
  • List-help: <mailto:ptp-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/ptp-user>, <mailto:ptp-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/ptp-user>, <mailto:ptp-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWYM/WSoP2KqeoCEGIufrsRJTqNakV5PEAgACXqug=
  • Thread-topic: [ptp-user] debug code in Eclipse with MPI support

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

On Jul 23, 2020, at 5:11 AM, Fan Li <f.li@xxxxxxxxxx> wrote:

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


Back to the top