Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Running and debugging an MPI application
Running and debugging an MPI application [message #160638] Sun, 18 December 2005 07:31 Go to next message
Eclipse UserFriend
Originally posted by: berend.chalmers.se

Hi,
I have been developing a managed make (eclipse takes care of the
makefile) project which is built upon MPI (Message passing interface,
for parallel applications). I currently run and debug my application
outside of eclipse/CDT, because I need the mpi script to run the
application,

$ mpirun -np 1 Debug/Application

1. Is there a way to run this application from within eclipse?

2. Is there a way to use the gdb debugger, at least for single processor
runs?

Many thanks,

Berend.
Re: Running and debugging an MPI application [message #160896 is a reply to message #160638] Wed, 21 December 2005 15:22 Go to previous messageGo to next message
Beth Tibbitts is currently offline Beth TibbittsFriend
Messages: 231
Registered: July 2009
Senior Member
Check out the new Parallel Tools Project http://eclipse.org/ptp -
which is built on top of CDT.
We have just released v1.0 of the MPI development tools,
which will locate MPI artifacts in your code, and provide content
assist, help, etc.
Click on the "download" link at http://eclipse.org.ptp on the left side.
The setup and configuration instructions
(installing Eclipse and CDT, so you're beyond that)
will appear on the website shortly, and v1.0 of the rest of PTP will be
following soon as well. The PTP MPI tools help plug-in, within
Eclipse, helps in setting up the CDT project to use the tools.
Ask further questions in the PTP newsgroup; we'll probably see them
sooner. (I'm cross-posting this reply to there.)

The base PTP download is coming soon. Meanwhile it's available from CVS.
The base PTP Help includes information on running and debugging the MPI
application with PTP...

....Beth

Berend van Wachem wrote:
> Hi,
> I have been developing a managed make (eclipse takes care of the
> makefile) project which is built upon MPI (Message passing interface,
> for parallel applications). I currently run and debug my application
> outside of eclipse/CDT, because I need the mpi script to run the
> application,
>
> $ mpirun -np 1 Debug/Application
>
> 1. Is there a way to run this application from within eclipse?
>
> 2. Is there a way to use the gdb debugger, at least for single processor
> runs?
>
> Many thanks,
>
> Berend.
Re: Running and debugging an MPI application [message #1806076 is a reply to message #160638] Thu, 02 May 2019 11:03 Go to previous message
Hanni Puspita is currently offline Hanni PuspitaFriend
Messages: 1
Registered: May 2019
Junior Member
You can create custom Makefile instead of using Makefile automatically generated by Eclipse.
1) Disable automatically generated Makefile : Properties -> C/C++ Build -> Generate Makefiles automatically -> untoggle
2) Create empty makefile and put inside :

all: OpenMPI.exe
mpirun -np 4 ./OpenMPI.exe

OpenMPI.exe: hello.c
mpicc hello.c -o "OpenMPI.exe"

clean:
rm -f hello.o OpenMPI.exe

3) Build and run again
Previous Topic:Serious crashes in the latest version of the CDT on Ubuntu 16.04, Linux Mint and others
Next Topic:Can you tell me what is your developing environment ?
Goto Forum:
  


Current Time: Thu Apr 25 05:21:59 GMT 2024

Powered by FUDForum. Page generated in 0.03580 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top