Update sensor component for new OOB calls
cmr=v1.7.4:reviewer=jsquyres This commit was SVN r30117.
Этот коммит содержится в:
родитель
597334459b
Коммит
9a855ff58e
@ -71,28 +71,23 @@ static struct timeval check_time;
|
|||||||
|
|
||||||
static int init(void)
|
static int init(void)
|
||||||
{
|
{
|
||||||
int rc;
|
|
||||||
|
|
||||||
OPAL_OUTPUT_VERBOSE((1, orte_sensor_base_framework.framework_output,
|
OPAL_OUTPUT_VERBOSE((1, orte_sensor_base_framework.framework_output,
|
||||||
"%s initializing heartbeat recvs",
|
"%s initializing heartbeat recvs",
|
||||||
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
|
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
|
||||||
|
|
||||||
/* setup to receive heartbeats */
|
/* setup to receive heartbeats */
|
||||||
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_CM) {
|
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_CM) {
|
||||||
if (ORTE_SUCCESS != (rc = orte_rml.recv_buffer_nb(ORTE_NAME_WILDCARD,
|
orte_rml.recv_buffer_nb(ORTE_NAME_WILDCARD,
|
||||||
ORTE_RML_TAG_HEARTBEAT,
|
ORTE_RML_TAG_HEARTBEAT,
|
||||||
ORTE_RML_PERSISTENT,
|
ORTE_RML_PERSISTENT,
|
||||||
recv_beats, NULL))) {
|
recv_beats, NULL);
|
||||||
ORTE_ERROR_LOG(rc);
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ORTE_PROC_IS_HNP) {
|
if (ORTE_PROC_IS_HNP) {
|
||||||
daemons = orte_get_job_data_object(ORTE_PROC_MY_NAME->jobid);
|
daemons = orte_get_job_data_object(ORTE_PROC_MY_NAME->jobid);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void finalize(void)
|
static void finalize(void)
|
||||||
@ -150,8 +145,8 @@ static void sample(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* send heartbeat */
|
/* send heartbeat */
|
||||||
if (0 > (rc = orte_rml.send_buffer_nb(ORTE_PROC_MY_HNP, buf,
|
if (ORTE_SUCCESS != (rc = orte_rml.send_buffer_nb(ORTE_PROC_MY_HNP, buf,
|
||||||
ORTE_RML_TAG_HEARTBEAT, 0,
|
ORTE_RML_TAG_HEARTBEAT,
|
||||||
orte_rml_send_callback, NULL))) {
|
orte_rml_send_callback, NULL))) {
|
||||||
ORTE_ERROR_LOG(rc);
|
ORTE_ERROR_LOG(rc);
|
||||||
OBJ_RELEASE(buf);
|
OBJ_RELEASE(buf);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user