stubs for daemon pcm
This commit was SVN r2550.
Этот коммит содержится в:
родитель
7dafd4ed89
Коммит
8bdce3b145
35
src/mca/pcm/ompid/Makefile.am
Обычный файл
35
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_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.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
|
||||||
|
|
10
src/mca/pcm/ompid/configure.params
Обычный файл
10
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"
|
18
src/mca/pcm/ompid/pcm_ompid.c
Обычный файл
18
src/mca/pcm/ompid/pcm_ompid.c
Обычный файл
@ -0,0 +1,18 @@
|
|||||||
|
/* -*- C -*-
|
||||||
|
*
|
||||||
|
* $HEADER$
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "ompi_config.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "mca/pcm/pcm.h"
|
||||||
|
#include "include/types.h"
|
||||||
|
#include "include/constants.h"
|
||||||
|
#include "pcm_ompid.h"
|
||||||
|
|
||||||
|
|
29
src/mca/pcm/ompid/pcm_ompid.h
Обычный файл
29
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
|
||||||
|
*/
|
||||||
|
|
82
src/mca/pcm/ompid/pcm_ompid_component.c
Обычный файл
82
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 <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
|
Загрузка…
x
Ссылка в новой задаче
Block a user