Re: [OMPI users] Debugging spawned processes

2009-12-21 Thread jody
Hi Ralph I finally got around to install version 1.4. The xterm works fine. And in order to get gdb going on the spawned processes, i need to add an argument "--args" in the argument list of the spawner so that the parameters of the spawned processes are getting through gdb. Thanks again Jody

Re: [OMPI users] Debugging spawned processes

2009-12-18 Thread Ashley Pittman
On Wed, 2009-12-16 at 12:06 +0100, jody wrote: > Has anybody got some hints on how to debug spawned processes? If you can live with the processes starting normally and attaching gdb to them after they have started then you could use padb. Assuming you only have one job active (replace -a with th

Re: [OMPI users] Debugging spawned processes

2009-12-17 Thread Ralph Castain
On Dec 17, 2009, at 3:54 AM, jody wrote: > yeah, know that you mention it, i remember (old brain here, as well) > But IIRC you created a OMPI version which was called 1.4a1r or something, > where i indeed could use this xterm. When i updated to 1.3.2, i sort > of forgot about it again... The 1.4

Re: [OMPI users] Debugging spawned processes

2009-12-17 Thread jody
yeah, know that you mention it, i remember (old brain here, as well) But IIRC you created a OMPI version which was called 1.4a1r or something, where i indeed could use this xterm. When i updated to 1.3.2, i sort of forgot about it again... Another question though: You said "If it includes the -xte

Re: [OMPI users] Debugging spawned processes

2009-12-16 Thread Ralph Castain
It is in a later version - pretty sure it made 1.3.3. IIRC, I added it at your request :-) On Dec 16, 2009, at 7:20 AM, jody wrote: > Thanks for your reply > > That sounds good. I have Open-MPI version 1.3.2, and mpirun seems not > to recognize the --xterm option. > [jody@plankton tileopt]$ mpi

Re: [OMPI users] Debugging spawned processes

2009-12-16 Thread jody
Thanks for your reply That sounds good. I have Open-MPI version 1.3.2, and mpirun seems not to recognize the --xterm option. [jody@plankton tileopt]$ mpirun --xterm -np 1 ./boss 9 sample.tlf -- mpirun was unable to launch the

Re: [OMPI users] Debugging spawned processes

2009-12-16 Thread Ralph Castain
Depends on the version you are working with. If it includes the -xterm option, then that option gets applied to the dynamically spawned procs too, so this should be automatically taken care of...but in that case, you wouldn't need your script to open an xterm anyway. You would just do: mpirun -

[OMPI users] Debugging spawned processes

2009-12-16 Thread jody
Hi Until now i always wrote applications for which the number of processes was given on the command line with -np. To debug these applications i wrote a script, run_gdb.sh which basically open a xterm and starts gdb in it for my application. This allowed me to have a window for each of the processe