1
1

dont worry about which oob component is loaded - always register

this works ok w/ cofs as local replicas are created for each process

This commit was SVN r2577.
Этот коммит содержится в:
Tim Woodall 2004-09-09 22:31:08 +00:00
родитель 1ecabd1364
Коммит 653ee9e1a3

Просмотреть файл

@ -5,7 +5,7 @@
/** @file **/
#include "ompi_config.h"
#include <string.h>
#include "include/constants.h"
#include "util/proc_info.h"
#include "util/sys_info.h"
@ -27,7 +27,6 @@ static ompi_condition_t ompi_rte_condition;
static bool ompi_rte_job_started = false;
static bool ompi_rte_job_finished = false;
extern char* mca_oob_base_include;
/*
* Update the registry with an entry for this process.
@ -35,8 +34,6 @@ extern char* mca_oob_base_include;
int ompi_rte_register(void)
{
/* temporarily disable this if dont know seed - e.g. using cofs */
if(NULL == mca_oob_base_include) {
ompi_buffer_t buffer;
char segment[32];
char *jobid = ompi_name_server.get_jobid_string(ompi_process_info.name);
@ -68,13 +65,8 @@ int ompi_rte_register(void)
if (ompi_rte_debug_flag) {
ompi_output(0, "rte_register: %s %d", keys[0], rc);
}
ompi_buffer_free(buffer);
return rc;
} else if (ompi_rte_debug_flag) {
ompi_output(0, "rte_register: oob does NOT have seed");
}
return OMPI_SUCCESS;
}
@ -84,8 +76,6 @@ int ompi_rte_register(void)
int ompi_rte_unregister(void)
{
/* temporarily disable this if dont know seed - e.g. using cofs */
if(NULL == mca_oob_base_include) {
char segment[32];
char *jobid = ompi_name_server.get_jobid_string(ompi_process_info.name);
char *keys[2];
@ -101,8 +91,6 @@ int ompi_rte_unregister(void)
rc = ompi_registry.delete_object(OMPI_REGISTRY_XAND, segment, keys);
free(keys[0]);
return rc;
}
return OMPI_SUCCESS;
}