This look okay?

Ralph:svn-trunk rhc$ mpirun -n 3 -xml -output-proctable hostname
<mpirun>
<map>
<host name="Ralph" slots="1" max_slots="0">
<process rank="0" pid="11313" status="launched"/>
<process rank="1" pid="11314" status="launched"/>
<process rank="2" pid="11315" status="launched"/>
</host>
</map>

<stdout rank="1">Ralph&#010;</stdout>
<stdout rank="0">Ralph&#010;</stdout>
<stdout rank="2">Ralph&#010;</stdout>
</mpirun>

I added an mca parameter OMPI_MCA_orte_output_debugger_proctable, and a corresponding cmd line option --output-proctable. It basically just outputs the job map, but at a time when the pids are known and so will be included in the output.


Added it to the trunk in r22725. We can adjust if you need something different.


On Feb 26, 2010, at 7:03 AM, Greg Watson wrote:

Ralph,

Adding a pid attribute to the process element would be great.

Thanks,
Greg

On Feb 25, 2010, at 9:07 PM, Ralph Castain wrote:

Easy to do. I'll dump all the pids at the same time when the launch completes - effectively, it will be at the same point used by other debuggers to attach.

Have it for you in the trunk this weekend. Can you suggest an xml format you would like? Otherwise, I'll just use the current proc output (used in the map output) and add a "pid" field to it.

On Thu, Feb 25, 2010 at 10:43 AM, Greg Watson <g.watson@computer.org> wrote:
Ralph,

We'd like this to be able to support attaching a debugger to the application. Would it be difficult to provide? We don't need the information all at once, each PID could be sent as the process launches (as long as the XML is correctly formatted) if that makes it any easier.

Greg

On Feb 23, 2010, at 3:58 PM, Ralph Castain wrote:

> I don't see a way to currently do that - the rmaps display comes -before- process launch, so the pid will not be displayed.
>
> Do you need to see them? We'd have to add that output somewhere post-launch - perhaps when debuggers are initialized.
>
> On Feb 23, 2010, at 12:58 PM, Greg Watson wrote:
>
>> Ralph,
>>
>> I notice that you've got support in the XML output code to display the pids of the processes, but I can't see how to enable them. Can you give me any pointers?
>>
>> Thanks,
>> Greg
>> _______________________________________________
>> devel mailing list
>> devel@open-mpi.org
>> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>
>
> _______________________________________________
> devel mailing list
> devel@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/devel


_______________________________________________
devel mailing list
devel@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel

_______________________________________________
devel mailing list
devel@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel

_______________________________________________
devel mailing list
devel@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel