From 8bdce3b145cdd2f6b27848086ddcb32dbb0a891c Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Wed, 8 Sep 2004 21:21:14 +0000 Subject: [PATCH] stubs for daemon pcm This commit was SVN r2550. --- src/mca/pcm/ompid/Makefile.am | 35 +++++++++++ src/mca/pcm/ompid/configure.params | 10 +++ src/mca/pcm/ompid/pcm_ompid.c | 18 ++++++ src/mca/pcm/ompid/pcm_ompid.h | 29 +++++++++ src/mca/pcm/ompid/pcm_ompid_component.c | 82 +++++++++++++++++++++++++ 5 files changed, 174 insertions(+) create mode 100644 src/mca/pcm/ompid/Makefile.am create mode 100644 src/mca/pcm/ompid/configure.params create mode 100644 src/mca/pcm/ompid/pcm_ompid.c create mode 100644 src/mca/pcm/ompid/pcm_ompid.h create mode 100644 src/mca/pcm/ompid/pcm_ompid_component.c diff --git a/src/mca/pcm/ompid/Makefile.am b/src/mca/pcm/ompid/Makefile.am new file mode 100644 index 0000000000..018271d2ce --- /dev/null +++ b/src/mca/pcm/ompid/Makefile.am @@ -0,0 +1,35 @@ +# +# $HEADER$ +# + +# Use the top-level Makefile.options + +include $(top_ompi_srcdir)/config/Makefile.options + +sources = \ + pcm_ompid.c \ + pcm_ompid.h \ + pcm_ompid_component.c + +# 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_pcm_ompid_DSO +component_noinst = +component_install = mca_pcm_ompid.la +else +component_noinst = libmca_pcm_ompid.la +component_install = +endif + +mcacomponentdir = $(libdir)/openmpi +mcacomponent_LTLIBRARIES = $(component_install) +mca_pcm_ompid_la_SOURCES = $(sources) +mca_pcm_ompid_la_LIBADD = $(LIBOMPI_LA) +mca_pcm_ompid_la_LDFLAGS = -module -avoid-version + +noinst_LTLIBRARIES = $(component_noinst) +libmca_pcm_ompid_la_SOURCES = $(sources) +libmca_pcm_ompid_la_LDFLAGS = -module -avoid-version + diff --git a/src/mca/pcm/ompid/configure.params b/src/mca/pcm/ompid/configure.params new file mode 100644 index 0000000000..45841551fd --- /dev/null +++ b/src/mca/pcm/ompid/configure.params @@ -0,0 +1,10 @@ +# -*- shell-script -*- +# +# $HEADER$ +# + +# Specific to this module + +PARAM_INIT_FILE=pcm_ompid.c +PARAM_CONFIG_HEADER_FILE="pcm_ompid_config.h" +PARAM_CONFIG_FILES="Makefile" diff --git a/src/mca/pcm/ompid/pcm_ompid.c b/src/mca/pcm/ompid/pcm_ompid.c new file mode 100644 index 0000000000..4d3359492d --- /dev/null +++ b/src/mca/pcm/ompid/pcm_ompid.c @@ -0,0 +1,18 @@ +/* -*- C -*- + * + * $HEADER$ + * + */ + +#include "ompi_config.h" +#include +#include +#include +#include + +#include "mca/pcm/pcm.h" +#include "include/types.h" +#include "include/constants.h" +#include "pcm_ompid.h" + + diff --git a/src/mca/pcm/ompid/pcm_ompid.h b/src/mca/pcm/ompid/pcm_ompid.h new file mode 100644 index 0000000000..05efd1cb89 --- /dev/null +++ b/src/mca/pcm/ompid/pcm_ompid.h @@ -0,0 +1,29 @@ +/* + * + * $HEADER$ + * + */ +#include "ompi_config.h" +#include "mca/pcm/pcm.h" + +/* + * Module open / close + */ +int mca_pcm_ompid_open(void); +int mca_pcm_ompid_close(void); + +/* + * Startup / Shutdown + */ +struct mca_pcm_base_module_1_0_0_t* mca_pcm_ompid_init( + int *priority, + bool *allow_multi_user_threads, + bool *have_hidden_threads); + +int mca_pcm_ompid_finalize(void); + + +/* + * "Action" functions + */ + diff --git a/src/mca/pcm/ompid/pcm_ompid_component.c b/src/mca/pcm/ompid/pcm_ompid_component.c new file mode 100644 index 0000000000..e7b1f47e07 --- /dev/null +++ b/src/mca/pcm/ompid/pcm_ompid_component.c @@ -0,0 +1,82 @@ +/* -*- C -*- + * + * $HEADER$ + * + */ + +#include "ompi_config.h" + +#include "include/constants.h" +#include "include/types.h" +#include "util/output.h" +#include "mca/mca.h" +#include "mca/pcm/pcm.h" +#include "mca/pcm/base/base.h" +#include "mca/base/mca_base_param.h" +#include "pcm_ompid.h" + +#include +#include +#include +#include + +/* + * Struct of function pointers and all that to let us be initialized + */ +mca_pcm_base_component_1_0_0_t mca_pcm_ompid_component = { + { + MCA_PCM_BASE_VERSION_1_0_0, + + "ompid", /* MCA component name */ + 1, /* MCA component major version */ + 0, /* MCA component minor version */ + 0, /* MCA component release version */ + mca_pcm_ompid_open, /* component open */ + mca_pcm_ompid_close /* component close */ + }, + { + false /* checkpoint / restart */ + }, + mca_pcm_ompid_init, /* component init */ + mca_pcm_ompid_finalize +}; + + +struct mca_pcm_base_module_1_0_0_t mca_pcm_ompid_1_0_0 = { + mca_pcm_base_no_unique_name, /* unique_string */ + NULL, /* allocate_resources */ + NULL, /* can_spawn */ + NULL, /* spawn_procs */ + NULL, /* kill_proc */ + NULL, /* kill_job */ + NULL /* deallocate_resources */ +}; + + +int mca_pcm_ompid_open(void) +{ + return OMPI_SUCCESS; +} + + +int mca_pcm_ompid_close(void) +{ + return OMPI_SUCCESS; +} + + +struct mca_pcm_base_module_1_0_0_t * +mca_pcm_ompid_init( + int *priority, + bool *allow_multi_user_threads, + bool *have_hidden_threads) +{ + return NULL; +} + + +int mca_pcm_ompid_finalize(void) +{ + return OMPI_SUCCESS; +} +