Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] Problems obtaining jdata->map in the HNP.
From: Hugo Daniel Meyer (meyer.hugo_at_[hidden])
Date: 2012-03-18 11:38:23


Hello.

I've included a new list in the orte_node_t (because i need to have a copy
of my data structure per daemon), it is an array of my own data structure,
which i will fill with data about the processes in the job, and other data
that interest me.

For test purposes, i'm trying to command the table fill from the process
with rank 0. This process send a message (send_buffer) to his HNP (using
"process_command" of orted_comm.c). The HNP receives this command and try
to obtain jdata of the daemons with the jobid of the sent by the rank 0.

* if (NULL == (jdata_orte = orte_get_job_data_object(jobid_orted)){*
* // problem*
*}*

I obtain the jdata_orte without problems, but, the jdata_orte->map is null,
and of course, i cannot do something like:

*node_from_map =
(orte_node_t*)opal_pointer_array_get_item(jdata->map->nodes, i);*
*
*

I need to obtain every node, and access my table to fill it.

My question is, the daemons do not fill this information, that's why i get
the jdata->map equal to NULL? If so, how can i obtain all the orte_node_t
objects to fill them with the information that i need? As i understand,
each daemon has a copy of the orte_node_t structures, is this so?

Thanks for the help.

Hugo