debug MPI apps via Xcode?
debug MPI apps via Xcode?
- Subject: debug MPI apps via Xcode?
- From: Jan Hegewald <email@hidden>
- Date: Fri, 27 Jan 2006 19:55:50 +0100
Hello,
I am working on a C++ MPI project which uses the MPICH MPI libraries.
The code is a collaborative work by Mac OS X, Linux and Windows
users. So we use cmake to generate platform dependant makefiles.
Compiling with Xcodes "External Target" works fine and is described
here:
http://developer.apple.com/documentation/Porting/Conceptual/
PortingUnix/preparing/chapter_3_section_4.html
Launching the app from within Xcode was not so easy, as I need to
start the app via the mpirun (or mpiexec) command, which launches
multiple instances of the app. I Terminal I would type:
/usr/local/bin/mpirun -np 4 ./myapp.bin
to launch 4 instances (while debuggin, all instances are launched on
my local mac, otherwise the would be launched on 4 nodes on a cluster).
Where I eventually got to trick Xcode is this:
use /bin/bash as executable path
use -c "/usr/local/bin/mpirun -np 4 ./myapp.bin" as arguments.
But when it comes to debugging, I am at a loss. How to start the
debugger for the 4 apps? I tried to attach the debugger to one of the
pids, but this doesn´t work.
Any suggestions are appreciated and welcomed.
TIA,
--Jan-- _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden