• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
debug MPI apps via Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Debugging a CGI with XCode, is it possible?
  • Next by Date: Re: NSBox subclass hangs IB when attempting to add view to the box.
  • Previous by thread: problem overriding operator new/delete and std stream
  • Next by thread: #include path problems
  • Index(es):
    • Date
    • Thread