2004-08-15 07:33:13 +04:00
|
|
|
/* -*- C -*-
|
|
|
|
*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2005-09-01 05:07:30 +04:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2004-11-28 23:09:25 +03:00
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
2005-09-01 05:07:30 +04:00
|
|
|
*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Additional copyrights may follow
|
2005-09-01 05:07:30 +04:00
|
|
|
*
|
2004-08-15 07:33:13 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/** @file:
|
|
|
|
*
|
|
|
|
* The Open MPI General Purpose Registry - Proxy component
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* includes
|
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
#include "orte_config.h"
|
2004-08-15 07:33:13 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
#include "include/orte_constants.h"
|
|
|
|
#include "include/orte_types.h"
|
2005-05-01 04:54:12 +04:00
|
|
|
#include "dps/dps.h"
|
2005-07-04 03:31:27 +04:00
|
|
|
#include "opal/util/output.h"
|
2005-03-14 23:57:21 +03:00
|
|
|
#include "util/proc_info.h"
|
|
|
|
|
|
|
|
#include "mca/ns/ns.h"
|
|
|
|
#include "mca/errmgr/errmgr.h"
|
|
|
|
#include "mca/oob/oob_types.h"
|
|
|
|
#include "mca/rml/rml.h"
|
2005-03-24 18:45:44 +03:00
|
|
|
#include "mca/errmgr/errmgr.h"
|
2004-11-20 22:12:43 +03:00
|
|
|
|
2004-08-15 07:33:13 +04:00
|
|
|
#include "gpr_proxy.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Struct of function pointers that need to be initialized
|
|
|
|
*/
|
2005-02-10 22:08:35 +03:00
|
|
|
mca_gpr_base_component_t mca_gpr_proxy_component = {
|
2004-09-23 18:38:00 +04:00
|
|
|
{
|
2005-09-01 05:07:30 +04:00
|
|
|
MCA_GPR_BASE_VERSION_1_0_0,
|
|
|
|
|
|
|
|
"proxy", /* MCA module name */
|
|
|
|
ORTE_MAJOR_VERSION, /* MCA module major version */
|
|
|
|
ORTE_MINOR_VERSION, /* MCA module minor version */
|
|
|
|
ORTE_RELEASE_VERSION, /* MCA module release version */
|
|
|
|
orte_gpr_proxy_open, /* module open */
|
|
|
|
orte_gpr_proxy_close /* module close */
|
2004-09-23 18:38:00 +04:00
|
|
|
},
|
|
|
|
{
|
2005-09-01 05:07:30 +04:00
|
|
|
false /* checkpoint / restart */
|
2004-09-23 18:38:00 +04:00
|
|
|
},
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_proxy_component_init, /* module init */
|
|
|
|
orte_gpr_proxy_finalize /* module shutdown */
|
2004-08-15 07:33:13 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* setup the function pointers for the module
|
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
static orte_gpr_base_module_t orte_gpr_proxy = {
|
|
|
|
/* INIT */
|
|
|
|
orte_gpr_proxy_module_init,
|
|
|
|
/* BLOCKING OPERATIONS */
|
|
|
|
orte_gpr_proxy_get,
|
|
|
|
orte_gpr_proxy_put,
|
2005-08-01 20:38:15 +04:00
|
|
|
orte_gpr_base_put_1,
|
|
|
|
orte_gpr_base_put_N,
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_proxy_delete_entries,
|
|
|
|
orte_gpr_proxy_delete_segment,
|
|
|
|
orte_gpr_proxy_index,
|
|
|
|
/* NON-BLOCKING OPERATIONS */
|
|
|
|
orte_gpr_proxy_get_nb,
|
|
|
|
orte_gpr_proxy_put_nb,
|
|
|
|
orte_gpr_proxy_delete_entries_nb,
|
|
|
|
orte_gpr_proxy_delete_segment_nb,
|
|
|
|
orte_gpr_proxy_index_nb,
|
|
|
|
/* GENERAL OPERATIONS */
|
|
|
|
orte_gpr_proxy_preallocate_segment,
|
2005-05-17 01:01:09 +04:00
|
|
|
orte_gpr_base_xfer_payload,
|
2005-09-01 05:07:30 +04:00
|
|
|
orte_gpr_proxy_deliver_notify_msg,
|
2005-03-14 23:57:21 +03:00
|
|
|
/* ARITHMETIC OPERATIONS */
|
|
|
|
orte_gpr_proxy_increment_value,
|
|
|
|
orte_gpr_proxy_decrement_value,
|
|
|
|
/* SUBSCRIBE OPERATIONS */
|
|
|
|
orte_gpr_proxy_subscribe,
|
2005-08-01 20:38:15 +04:00
|
|
|
orte_gpr_base_subscribe_1,
|
|
|
|
orte_gpr_base_subscribe_N,
|
|
|
|
orte_gpr_base_define_trigger,
|
2005-09-01 05:07:30 +04:00
|
|
|
orte_gpr_base_define_trigger_level,
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_proxy_unsubscribe,
|
2005-06-24 20:59:37 +04:00
|
|
|
orte_gpr_proxy_cancel_trigger,
|
2005-03-14 23:57:21 +03:00
|
|
|
/* COMPOUND COMMANDS */
|
|
|
|
orte_gpr_proxy_begin_compound_cmd,
|
|
|
|
orte_gpr_proxy_stop_compound_cmd,
|
|
|
|
orte_gpr_proxy_exec_compound_cmd,
|
|
|
|
/* DIAGNOSTIC OPERATIONS */
|
|
|
|
orte_gpr_proxy_dump_all,
|
|
|
|
orte_gpr_proxy_dump_segments,
|
|
|
|
orte_gpr_proxy_dump_triggers,
|
2005-06-24 20:59:37 +04:00
|
|
|
orte_gpr_proxy_dump_subscriptions,
|
2005-09-01 05:07:30 +04:00
|
|
|
orte_gpr_proxy_dump_a_trigger,
|
|
|
|
orte_gpr_proxy_dump_a_subscription,
|
2005-08-01 20:38:15 +04:00
|
|
|
orte_gpr_proxy_dump_local_triggers,
|
|
|
|
orte_gpr_proxy_dump_local_subscriptions,
|
2005-03-29 02:37:54 +04:00
|
|
|
orte_gpr_proxy_dump_callbacks,
|
|
|
|
orte_gpr_proxy_dump_notify_msg,
|
|
|
|
orte_gpr_proxy_dump_notify_data,
|
2005-05-01 04:53:00 +04:00
|
|
|
orte_gpr_proxy_dump_value,
|
2005-03-14 23:57:21 +03:00
|
|
|
/* CLEANUP OPERATIONS */
|
|
|
|
orte_gpr_proxy_cleanup_job,
|
|
|
|
orte_gpr_proxy_cleanup_proc
|
2004-08-15 07:33:13 +04:00
|
|
|
};
|
|
|
|
|
2004-08-27 09:23:04 +04:00
|
|
|
|
2004-08-15 07:33:13 +04:00
|
|
|
/*
|
|
|
|
* Whether or not we allowed this component to be selected
|
|
|
|
*/
|
|
|
|
static bool initialized = false;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* globals needed within proxy component
|
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_proxy_globals_t orte_gpr_proxy_globals;
|
2004-11-20 22:12:43 +03:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
/* SUBSCRIBER */
|
|
|
|
/* constructor - used to initialize subscriber instance */
|
|
|
|
static void orte_gpr_proxy_subscriber_construct(orte_gpr_proxy_subscriber_t* req)
|
2004-11-20 22:12:43 +03:00
|
|
|
{
|
|
|
|
req->callback = NULL;
|
|
|
|
req->user_tag = NULL;
|
2005-06-24 20:59:37 +04:00
|
|
|
req->id = 0;
|
2005-08-01 20:38:15 +04:00
|
|
|
req->name = NULL;
|
2004-11-20 22:12:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* destructor - used to free any resources held by instance */
|
2005-03-14 23:57:21 +03:00
|
|
|
static void orte_gpr_proxy_subscriber_destructor(orte_gpr_proxy_subscriber_t* req)
|
2004-11-20 22:12:43 +03:00
|
|
|
{
|
2005-08-01 20:38:15 +04:00
|
|
|
if (NULL != req->name) free(req->name);
|
2004-11-20 22:12:43 +03:00
|
|
|
}
|
|
|
|
|
2005-07-03 20:06:07 +04:00
|
|
|
/* define instance of opal_class_t */
|
2004-11-20 22:12:43 +03:00
|
|
|
OBJ_CLASS_INSTANCE(
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_proxy_subscriber_t, /* type name */
|
2005-07-03 20:06:07 +04:00
|
|
|
opal_object_t, /* parent "class" name */
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_proxy_subscriber_construct, /* constructor */
|
|
|
|
orte_gpr_proxy_subscriber_destructor); /* destructor */
|
|
|
|
|
|
|
|
|
2005-07-18 22:49:00 +04:00
|
|
|
/* TRIGGER */
|
|
|
|
/* constructor - used to initialize trigger instance */
|
|
|
|
static void orte_gpr_proxy_trigger_construct(orte_gpr_proxy_trigger_t* req)
|
|
|
|
{
|
|
|
|
req->callback = NULL;
|
|
|
|
req->user_tag = NULL;
|
|
|
|
req->id = 0;
|
2005-08-01 20:38:15 +04:00
|
|
|
req->name = NULL;
|
2005-07-18 22:49:00 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* destructor - used to free any resources held by instance */
|
|
|
|
static void orte_gpr_proxy_trigger_destructor(orte_gpr_proxy_trigger_t* req)
|
|
|
|
{
|
2005-08-01 20:38:15 +04:00
|
|
|
if (NULL != req->name) free(req->name);
|
2005-07-18 22:49:00 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* define instance of opal_class_t */
|
|
|
|
OBJ_CLASS_INSTANCE(
|
|
|
|
orte_gpr_proxy_trigger_t, /* type name */
|
|
|
|
opal_object_t, /* parent "class" name */
|
|
|
|
orte_gpr_proxy_trigger_construct, /* constructor */
|
|
|
|
orte_gpr_proxy_trigger_destructor); /* destructor */
|
|
|
|
|
|
|
|
|
2004-08-15 07:33:13 +04:00
|
|
|
/*
|
2004-11-20 22:12:43 +03:00
|
|
|
* Open the component
|
2004-08-15 07:33:13 +04:00
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
int orte_gpr_proxy_open(void)
|
2004-08-15 07:33:13 +04:00
|
|
|
{
|
2005-03-14 23:57:21 +03:00
|
|
|
int id, tmp;
|
2004-08-28 05:59:56 +04:00
|
|
|
|
|
|
|
id = mca_base_param_register_int("gpr", "proxy", "debug", NULL, 0);
|
2005-03-14 23:57:21 +03:00
|
|
|
mca_base_param_lookup_int(id, &tmp);
|
|
|
|
if (tmp) {
|
|
|
|
orte_gpr_proxy_globals.debug = true;
|
|
|
|
} else {
|
|
|
|
orte_gpr_proxy_globals.debug = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return ORTE_SUCCESS;
|
2004-08-15 07:33:13 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2004-11-20 22:12:43 +03:00
|
|
|
* Close the component
|
2004-08-15 07:33:13 +04:00
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
int orte_gpr_proxy_close(void)
|
2004-08-15 07:33:13 +04:00
|
|
|
{
|
2005-03-14 23:57:21 +03:00
|
|
|
return ORTE_SUCCESS;
|
2004-08-15 07:33:13 +04:00
|
|
|
}
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_base_module_t*
|
|
|
|
orte_gpr_proxy_component_init(bool *allow_multi_user_threads, bool *have_hidden_threads,
|
|
|
|
int *priority)
|
2004-08-15 07:33:13 +04:00
|
|
|
{
|
2005-05-05 23:14:51 +04:00
|
|
|
orte_process_name_t name;
|
|
|
|
int ret;
|
2005-09-01 05:07:30 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
if (orte_gpr_proxy_globals.debug) {
|
2005-09-01 05:07:30 +04:00
|
|
|
opal_output(0, "gpr_proxy_init called");
|
2004-09-03 17:54:34 +04:00
|
|
|
}
|
|
|
|
|
Not as bad as this all may look. Tim and I made a significant change to the way we handle the startup of the oob, the seed, etc. We have made it backwards-compatible so that mpirun2 and singleton operations remain working. We had to adjust the name server and gpr as well, plus the process_info structure.
This also includes a checkpoint update to openmpi.c and ompid.c. I have re-enabled the ompid compile.
This latter raises an important point. The trunk compiles the programs like ompid just fine under Linux. It also does just fine for OSX under the dynamic libraries. However, we are seeing errors when compiling under OSX for the static case - the linker seems to have trouble resolving some variable names, even though linker diagnostics show the variables as being defined. Thus, a warning to Mac users that you may have to locally turn things off if you are trying to do static compiles. We ask, however, that you don't commit those changes that turn things off for everyone else - instead, let's try to figure out why the static compile is having a problem, and let everyone else continue to work.
Thanks
Ralph
This commit was SVN r2534.
2004-09-08 07:59:06 +04:00
|
|
|
/* If we are NOT to host a replica, then we want to be selected, so do all
|
2004-08-15 07:33:13 +04:00
|
|
|
the setup and return the module */
|
2005-05-05 23:14:51 +04:00
|
|
|
if (NULL != orte_process_info.gpr_replica_uri) {
|
2004-08-15 07:33:13 +04:00
|
|
|
|
2005-09-01 05:07:30 +04:00
|
|
|
if (orte_gpr_proxy_globals.debug) {
|
|
|
|
opal_output(0, "[%lu,%lu,%lu] gpr_proxy_init: proxy selected",
|
2005-08-22 22:02:10 +04:00
|
|
|
ORTE_NAME_ARGS(orte_process_info.my_name));
|
2005-09-01 05:07:30 +04:00
|
|
|
}
|
|
|
|
|
2005-06-24 20:59:37 +04:00
|
|
|
/* setup the replica location */
|
|
|
|
if(ORTE_SUCCESS != (ret = orte_rml.parse_uris(orte_process_info.gpr_replica_uri, &name, NULL))) {
|
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
if(ORTE_SUCCESS != (ret = orte_ns.copy_process_name(&orte_process_info.gpr_replica, &name))) {
|
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
return NULL;
|
|
|
|
}
|
2005-09-01 05:07:30 +04:00
|
|
|
|
|
|
|
/* Return a module (choose an arbitrary, positive priority --
|
|
|
|
it's only relevant compared to other ns components). If
|
|
|
|
we're not the seed, then we don't want to be selected, so
|
|
|
|
return NULL. */
|
|
|
|
|
|
|
|
*priority = 10;
|
|
|
|
|
|
|
|
/* We allow multi user threads but don't have any hidden threads */
|
|
|
|
|
|
|
|
*allow_multi_user_threads = true;
|
|
|
|
*have_hidden_threads = false;
|
|
|
|
|
|
|
|
/* setup thread locks and condition variable */
|
|
|
|
OBJ_CONSTRUCT(&orte_gpr_proxy_globals.mutex, opal_mutex_t);
|
|
|
|
OBJ_CONSTRUCT(&orte_gpr_proxy_globals.wait_for_compound_mutex, opal_mutex_t);
|
|
|
|
OBJ_CONSTRUCT(&orte_gpr_proxy_globals.compound_cmd_condition, opal_condition_t);
|
|
|
|
|
|
|
|
/* initialize the registry compound mode */
|
|
|
|
orte_gpr_proxy_globals.compound_cmd_mode = false;
|
|
|
|
orte_gpr_proxy_globals.compound_cmd_waiting = 0;
|
|
|
|
orte_gpr_proxy_globals.compound_cmd = NULL;
|
|
|
|
|
|
|
|
/* initialize the subscription tracker */
|
2005-07-18 22:49:00 +04:00
|
|
|
if (ORTE_SUCCESS != (ret = orte_pointer_array_init(&(orte_gpr_proxy_globals.subscriptions),
|
|
|
|
orte_gpr_array_block_size,
|
|
|
|
orte_gpr_array_max_size,
|
|
|
|
orte_gpr_array_block_size))) {
|
|
|
|
ORTE_ERROR_LOG(ret);
|
2005-03-14 23:57:21 +03:00
|
|
|
return NULL;
|
|
|
|
}
|
2005-07-18 22:49:00 +04:00
|
|
|
orte_gpr_proxy_globals.num_subs = 0;
|
2005-09-01 05:07:30 +04:00
|
|
|
|
2005-06-24 20:59:37 +04:00
|
|
|
/* initialize the trigger counter */
|
2005-07-18 22:49:00 +04:00
|
|
|
if (ORTE_SUCCESS != (ret = orte_pointer_array_init(&(orte_gpr_proxy_globals.triggers),
|
|
|
|
orte_gpr_array_block_size,
|
|
|
|
orte_gpr_array_max_size,
|
|
|
|
orte_gpr_array_block_size))) {
|
|
|
|
ORTE_ERROR_LOG(ret);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
orte_gpr_proxy_globals.num_trigs = 0;
|
2005-09-01 05:07:30 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
initialized = true;
|
|
|
|
return &orte_gpr_proxy;
|
2004-08-15 07:33:13 +04:00
|
|
|
} else {
|
2005-03-14 23:57:21 +03:00
|
|
|
return NULL;
|
2004-08-15 07:33:13 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
int orte_gpr_proxy_module_init(void)
|
|
|
|
{
|
|
|
|
/* issue the non-blocking receive */
|
2005-03-24 18:45:44 +03:00
|
|
|
int rc;
|
|
|
|
rc = orte_rml.recv_buffer_nb(ORTE_RML_NAME_ANY, ORTE_RML_TAG_GPR_NOTIFY, 0, orte_gpr_proxy_notify_recv, NULL);
|
|
|
|
if(rc < 0) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
return ORTE_SUCCESS;
|
2005-03-14 23:57:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-08-15 07:33:13 +04:00
|
|
|
/*
|
|
|
|
* finalize routine
|
|
|
|
*/
|
2005-03-14 23:57:21 +03:00
|
|
|
int orte_gpr_proxy_finalize(void)
|
2004-08-15 07:33:13 +04:00
|
|
|
{
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
if (orte_gpr_proxy_globals.debug) {
|
2005-09-01 05:07:30 +04:00
|
|
|
opal_output(0, "[%lu,%lu,%lu] gpr_proxy_finalize called",
|
2005-08-22 22:02:10 +04:00
|
|
|
ORTE_NAME_ARGS(orte_process_info.my_name));
|
2004-09-03 17:54:34 +04:00
|
|
|
}
|
|
|
|
|
2004-09-23 18:38:00 +04:00
|
|
|
if (initialized) {
|
2005-09-01 05:07:30 +04:00
|
|
|
initialized = false;
|
2004-09-23 18:38:00 +04:00
|
|
|
}
|
2004-08-15 07:33:13 +04:00
|
|
|
|
2004-09-23 18:38:00 +04:00
|
|
|
/* All done */
|
2005-03-18 06:43:59 +03:00
|
|
|
orte_rml.recv_cancel(ORTE_RML_NAME_ANY, ORTE_RML_TAG_GPR_NOTIFY);
|
2005-03-14 23:57:21 +03:00
|
|
|
return ORTE_SUCCESS;
|
2004-08-15 07:33:13 +04:00
|
|
|
}
|
2004-08-27 09:23:04 +04:00
|
|
|
|
2005-09-01 05:07:30 +04:00
|
|
|
/*
|
2004-08-27 09:23:04 +04:00
|
|
|
* handle notify messages from replicas
|
|
|
|
*/
|
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
void orte_gpr_proxy_notify_recv(int status, orte_process_name_t* sender,
|
2005-09-01 05:07:30 +04:00
|
|
|
orte_buffer_t *buffer, orte_rml_tag_t tag,
|
|
|
|
void* cbdata)
|
2004-08-27 09:23:04 +04:00
|
|
|
{
|
2005-03-14 23:57:21 +03:00
|
|
|
orte_gpr_cmd_flag_t command;
|
2005-07-18 22:49:00 +04:00
|
|
|
orte_gpr_notify_message_t *msg;
|
2005-09-01 05:07:30 +04:00
|
|
|
size_t n;
|
2005-03-14 23:57:21 +03:00
|
|
|
int rc;
|
2004-08-27 09:23:04 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
n = 1;
|
|
|
|
if (ORTE_SUCCESS != (rc = orte_dps.unpack(buffer, &command, &n, ORTE_GPR_CMD))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
|
|
|
goto RETURN_ERROR;
|
2004-11-20 22:12:43 +03:00
|
|
|
}
|
|
|
|
|
2005-09-01 05:07:30 +04:00
|
|
|
if (ORTE_GPR_NOTIFY_CMD != command) {
|
2005-03-14 23:57:21 +03:00
|
|
|
ORTE_ERROR_LOG(ORTE_ERR_COMM_FAILURE);
|
2005-09-01 05:07:30 +04:00
|
|
|
goto RETURN_ERROR;
|
2004-11-20 22:12:43 +03:00
|
|
|
}
|
|
|
|
|
2005-07-18 22:49:00 +04:00
|
|
|
msg = OBJ_NEW(orte_gpr_notify_message_t);
|
|
|
|
if (NULL == msg) {
|
|
|
|
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
|
|
|
|
goto RETURN_ERROR;
|
|
|
|
}
|
2005-09-01 05:07:30 +04:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
n = 1;
|
2005-07-18 22:49:00 +04:00
|
|
|
if (ORTE_SUCCESS != (rc = orte_dps.unpack(buffer, &msg, &n, ORTE_GPR_NOTIFY_MSG))) {
|
2005-03-14 23:57:21 +03:00
|
|
|
ORTE_ERROR_LOG(rc);
|
2005-07-18 22:49:00 +04:00
|
|
|
OBJ_RELEASE(msg);
|
2005-03-14 23:57:21 +03:00
|
|
|
goto RETURN_ERROR;
|
2004-08-27 09:23:04 +04:00
|
|
|
}
|
|
|
|
|
2005-09-01 05:07:30 +04:00
|
|
|
/* process the message */
|
|
|
|
if (ORTE_SUCCESS != (rc = orte_gpr_proxy_deliver_notify_msg(msg))) {
|
|
|
|
ORTE_ERROR_LOG(rc);
|
2005-07-18 22:49:00 +04:00
|
|
|
OBJ_RELEASE(msg);
|
2005-09-01 05:07:30 +04:00
|
|
|
goto RETURN_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* release data */
|
|
|
|
OBJ_RELEASE(msg);
|
|
|
|
|
2004-08-27 09:23:04 +04:00
|
|
|
|
2005-06-24 20:59:37 +04:00
|
|
|
RETURN_ERROR:
|
2004-09-14 21:00:48 +04:00
|
|
|
|
|
|
|
/* reissue non-blocking receive */
|
2005-03-18 06:43:59 +03:00
|
|
|
orte_rml.recv_buffer_nb(ORTE_RML_NAME_ANY, ORTE_RML_TAG_GPR_NOTIFY, 0, orte_gpr_proxy_notify_recv, NULL);
|
2004-09-14 21:00:48 +04:00
|
|
|
|
2004-08-27 09:23:04 +04:00
|
|
|
}
|
2004-09-01 18:22:06 +04:00
|
|
|
|