From 1783e15a96d17d4037ecaed2d8fc220cd129038c Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 8 Jul 2004 02:48:17 +0000 Subject: [PATCH] Add these in so autogen and configure don't bark This commit was SVN r1586. --- src/mca/ns/replica/makefile.am | 34 +++++++++++++++ src/mca/ns/replica/name_server.c | 73 -------------------------------- 2 files changed, 34 insertions(+), 73 deletions(-) create mode 100644 src/mca/ns/replica/makefile.am delete mode 100644 src/mca/ns/replica/name_server.c diff --git a/src/mca/ns/replica/makefile.am b/src/mca/ns/replica/makefile.am new file mode 100644 index 0000000000..9354d1f579 --- /dev/null +++ b/src/mca/ns/replica/makefile.am @@ -0,0 +1,34 @@ +# +# $HEADER$ +# + +# Use the top-level Makefile.options + +include $(top_ompi_srcdir)/config/Makefile.options + +SUBDIRS = src + +EXTRA_DIST = VERSION + +# Make the output library in this directory, and name it either +# mca__.la (for DSO builds) or libmca__.la +# (for static builds). + +#if OMPI_BUILD_ns_replica_DSO +#component_noinst = +#component_install = mca_ns_replica.la +#else +component_noinst = libmca_ns_replica.la +component_install = +#endif + +#mcacomponentdir = $(libdir)/openmpi +#mcacomponent_LTLIBRARIES = $(component_install) +#mca_ns_replica_la_SOURCES = +#mca_ns_replica_la_LIBADD = src/libmca_ns_replica.la +#mca_ns_replica_la_LDFLAGS = -module -avoid-version + +noinst_LTLIBRARIES = $(component_noinst) +libmca_ns_replica_la_SOURCES = +libmca_ns_replica_la_LIBADD = src/libmca_ns_replica.la +libmca_ns_replica_la_LDFLAGS = -module -avoid-version diff --git a/src/mca/ns/replica/name_server.c b/src/mca/ns/replica/name_server.c deleted file mode 100644 index 51f4ca79c1..0000000000 --- a/src/mca/ns/replica/name_server.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * $HEADER$ - */ -/** @file: - * - * The Open MPI Name Server - * - * The Open MPI Name Server provides unique name ranges for processes within the - * universe. Each universe will have one name server running within the seed daemon. - * This is done to prevent the inadvertent duplication of names. - * - */ - -/* - * includes - */ -#include "ompi_config.h" -#include "include/constants.h" - -#include "mca/ns/base/base.h" -#include "mca/ns/ns.h" - -/* - * defines - */ -#define OMPI_SUCCESS 1 - -/** - * globals - */ -ompi_process_id_t ompi_name_service = 0; -ompi_process_id_t OMPI_NAME_SERVICE_MAX = 0xffff; - -ompi_process_id_t ompi_process_name_new(void) -{ - if (OMPI_NAME_SERVICE_MAX > ompi_name_service) { - ompi_name_service = ompi_name_service + 1; - return(ompi_name_service); - } else { - return(0); - } -} - -ompi_process_id_t ompi_process_name_get_range (ompi_process_id_t range) -{ - if ((OMPI_NAME_SERVICE_MAX-range) > ompi_name_service) { - ompi_name_service = ompi_name_service + range; - return(ompi_name_service); - } else { - return(0); - } -} - -int ompi_process_name_free(ompi_process_id_t name) -{ - return OMPI_SUCCESS; -} - -int ompi_process_name_free_range(ompi_process_id_t name, ompi_process_id_t range) -{ - return OMPI_SUCCESS; -} - -char *ompi_convert_process_name_to_string(ompi_process_id_t name) -{ - char * name_string; - uint32_t *name32; - - name32 = (uint32_t*) &name; - sprintf(name_string, "%x%x", name32[0], name32[1]); - return(name_string); -} -