Add these in so autogen and configure don't bark
This commit was SVN r1586.
Этот коммит содержится в:
родитель
49c43aa96d
Коммит
1783e15a96
34
src/mca/ns/replica/makefile.am
Обычный файл
34
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_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.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
|
@ -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);
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user