initial code - does not even compile, but Josh is picking up on this.
This commit was SVN r15641.
Этот коммит содержится в:
родитель
d0137acaa4
Коммит
60df8be1a7
0
orte/mca/grpcomm/cnos/.ompi_ignore
Обычный файл
0
orte/mca/grpcomm/cnos/.ompi_ignore
Обычный файл
46
orte/mca/grpcomm/cnos/Makefile.am
Обычный файл
46
orte/mca/grpcomm/cnos/Makefile.am
Обычный файл
@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
# University Research and Technology
|
||||
# Corporation. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
# of Tennessee Research Foundation. All rights
|
||||
# reserved.
|
||||
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
# University of Stuttgart. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
# $COPYRIGHT$
|
||||
#
|
||||
# Additional copyrights may follow
|
||||
#
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
sources = \
|
||||
grpcomm_cnos.h \
|
||||
grpcomm_cnos_module.c \
|
||||
grpcomm_cnos_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_grpcomm_cnos_DSO
|
||||
component_noinst =
|
||||
component_install = mca_grpcomm_cnos.la
|
||||
else
|
||||
component_noinst = libmca_grpcomm_cnos.la
|
||||
component_install =
|
||||
endif
|
||||
|
||||
mcacomponentdir = $(pkglibdir)
|
||||
mcacomponent_LTLIBRARIES = $(component_install)
|
||||
mca_grpcomm_cnos_la_SOURCES = $(sources)
|
||||
mca_grpcomm_cnos_la_LDFLAGS = -module -avoid-version
|
||||
mca_grpcomm_cnos_la_LIBADD = \
|
||||
$(top_ompi_builddir)/orte/libopen-rte.la \
|
||||
$(top_ompi_builddir)/opal/libopen-pal.la
|
||||
|
||||
noinst_LTLIBRARIES = $(component_noinst)
|
||||
libmca_grpcomm_cnos_la_SOURCES =$(sources)
|
||||
libmca_grpcomm_cnos_la_LDFLAGS = -module -avoid-version
|
1236
orte/mca/grpcomm/cnos/Makefile.in
Обычный файл
1236
orte/mca/grpcomm/cnos/Makefile.in
Обычный файл
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
24
orte/mca/grpcomm/cnos/configure.params
Обычный файл
24
orte/mca/grpcomm/cnos/configure.params
Обычный файл
@ -0,0 +1,24 @@
|
||||
# -*- shell-script -*-
|
||||
#
|
||||
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
# University Research and Technology
|
||||
# Corporation. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
# of Tennessee Research Foundation. All rights
|
||||
# reserved.
|
||||
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
# University of Stuttgart. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
# Copyright (c) 2007 Los Alamos National Security, LLC. All rights
|
||||
# reserved.
|
||||
# $COPYRIGHT$
|
||||
#
|
||||
# Additional copyrights may follow
|
||||
#
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
# Specific to this module
|
||||
|
||||
PARAM_CONFIG_FILES="Makefile"
|
69
orte/mca/grpcomm/cnos/grpcomm_cnos.h
Обычный файл
69
orte/mca/grpcomm/cnos/grpcomm_cnos.h
Обычный файл
@ -0,0 +1,69 @@
|
||||
/* -*- C -*-
|
||||
*
|
||||
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*
|
||||
*/
|
||||
#ifndef GRPCOMM_BASIC_H
|
||||
#define GRPCOMM_BASIC_H
|
||||
|
||||
#include "orte_config.h"
|
||||
#include "orte/orte_types.h"
|
||||
#include "orte/orte_constants.h"
|
||||
|
||||
#include "opal/threads/mutex.h"
|
||||
#include "opal/threads/condition.h"
|
||||
#include "opal/class/opal_object.h"
|
||||
|
||||
#include "orte/mca/grpcomm/grpcomm.h"
|
||||
|
||||
BEGIN_C_DECLS
|
||||
|
||||
/*
|
||||
* globals
|
||||
*/
|
||||
/*
|
||||
* globals needed within component
|
||||
*/
|
||||
|
||||
/*
|
||||
* Module open / close
|
||||
*/
|
||||
int orte_grpcomm_cnos_open(void);
|
||||
int orte_grpcomm_cnos_close(void);
|
||||
orte_grpcomm_base_module_t* orte_grpcomm_cnos_init(int *priority);
|
||||
|
||||
|
||||
/*
|
||||
* Startup / Shutdown
|
||||
*/
|
||||
int orte_grpcomm_cnos_module_init(void);
|
||||
int orte_grpcomm_cnos_finalize(void);
|
||||
|
||||
/*
|
||||
* xcast interfaces
|
||||
*/
|
||||
|
||||
void orte_ns_replica_recv(int status, orte_process_name_t* sender,
|
||||
orte_buffer_t* buffer, orte_rml_tag_t tag, void* cbdata);
|
||||
|
||||
|
||||
ORTE_MODULE_DECLSPEC extern orte_grpcomm_base_component_t mca_grpcomm_cnos_component;
|
||||
extern orte_grpcomm_base_module_t orte_grpcomm_cnos_module;
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
#endif
|
107
orte/mca/grpcomm/cnos/grpcomm_cnos_component.c
Обычный файл
107
orte/mca/grpcomm/cnos/grpcomm_cnos_component.c
Обычный файл
@ -0,0 +1,107 @@
|
||||
/* -*- C -*-
|
||||
*
|
||||
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $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 "orte_config.h"
|
||||
|
||||
#include "orte/orte_constants.h"
|
||||
#include "orte/orte_types.h"
|
||||
|
||||
#include "opal/threads/mutex.h"
|
||||
#include "opal/class/opal_list.h"
|
||||
#include "opal/util/output.h"
|
||||
|
||||
#include "opal/mca/mca.h"
|
||||
#include "opal/mca/base/mca_base_param.h"
|
||||
|
||||
#include "orte/util/proc_info.h"
|
||||
#include "orte/mca/errmgr/errmgr.h"
|
||||
#include "orte/mca/rml/rml.h"
|
||||
|
||||
#include "grpcomm_cnos.h"
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Struct of function pointers that need to be initialized
|
||||
*/
|
||||
orte_grpcomm_base_component_t mca_grpcomm_cnos_component = {
|
||||
{
|
||||
ORTE_GRPCOMM_BASE_VERSION_2_0_0,
|
||||
|
||||
"cnos", /* MCA module name */
|
||||
ORTE_MAJOR_VERSION, /* MCA module major version */
|
||||
ORTE_MINOR_VERSION, /* MCA module minor version */
|
||||
ORTE_RELEASE_VERSION, /* MCA module release version */
|
||||
orte_grpcomm_cnos_open, /* module open */
|
||||
orte_grpcomm_cnos_close /* module close */
|
||||
},
|
||||
{
|
||||
/* The component is checkpoint ready */
|
||||
MCA_BASE_METADATA_PARAM_CHECKPOINT
|
||||
},
|
||||
orte_grpcomm_cnos_init, /* component init */
|
||||
orte_grpcomm_cnos_finalize /* component shutdown */
|
||||
};
|
||||
|
||||
/*
|
||||
* instantiate globals needed within cnos component
|
||||
*/
|
||||
|
||||
/* Open the component */
|
||||
int orte_grpcomm_cnos_open(void)
|
||||
{
|
||||
int value;
|
||||
char *mode;
|
||||
|
||||
return ORTE_SUCCESS;
|
||||
}
|
||||
|
||||
/* Close the component */
|
||||
int orte_grpcomm_cnos_close(void)
|
||||
{
|
||||
return ORTE_SUCCESS;
|
||||
}
|
||||
|
||||
orte_grpcomm_base_module_t* orte_grpcomm_cnos_init(int *priority)
|
||||
{
|
||||
/* we are the default, so set a low priority so we can be overridden */
|
||||
*priority = 50;
|
||||
|
||||
return &orte_grpcomm_cnos_module;
|
||||
}
|
||||
|
||||
/*
|
||||
* finalize routine
|
||||
*/
|
||||
int orte_grpcomm_cnos_finalize(void)
|
||||
{
|
||||
return ORTE_SUCCESS;
|
||||
}
|
93
orte/mca/grpcomm/cnos/grpcomm_cnos_module.c
Обычный файл
93
orte/mca/grpcomm/cnos/grpcomm_cnos_module.c
Обычный файл
@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
|
||||
#include "orte_config.h"
|
||||
#include "orte/orte_constants.h"
|
||||
|
||||
#include <string.h>
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif /* HAVE_SYS_TIME_H */
|
||||
|
||||
#include "opal/threads/condition.h"
|
||||
#include "opal/util/output.h"
|
||||
#include "opal/util/bit_ops.h"
|
||||
|
||||
#include "orte/util/proc_info.h"
|
||||
#include "orte/dss/dss.h"
|
||||
#include "orte/mca/gpr/gpr.h"
|
||||
#include "orte/mca/errmgr/errmgr.h"
|
||||
#include "orte/mca/ns/ns.h"
|
||||
#include "orte/mca/rmgr/rmgr.h"
|
||||
#include "orte/mca/smr/smr.h"
|
||||
#include "orte/mca/odls/odls_types.h"
|
||||
#include "orte/mca/rml/rml.h"
|
||||
#include "orte/runtime/params.h"
|
||||
|
||||
#include "grpcomm_basic.h"
|
||||
|
||||
/* API functions */
|
||||
static int xcast_nb(orte_jobid_t job,
|
||||
orte_buffer_t *buffer,
|
||||
orte_rml_tag_t tag);
|
||||
|
||||
static int xcast(orte_jobid_t job,
|
||||
orte_buffer_t *buffer,
|
||||
orte_rml_tag_t tag);
|
||||
|
||||
static int xcast_gate(orte_gpr_trigger_cb_fn_t cbfunc);
|
||||
|
||||
orte_grpcomm_base_module_t orte_grpcomm_cnos_module = {
|
||||
xcast,
|
||||
xcast_nb,
|
||||
xcast_gate
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* A "broadcast-like" function to a job's processes.
|
||||
* @param jobid The job whose processes are to receive the message
|
||||
* @param buffer The data to broadcast
|
||||
*/
|
||||
|
||||
/* Non-blocking version */
|
||||
static int xcast_nb(orte_jobid_t job,
|
||||
orte_buffer_t *buffer,
|
||||
orte_rml_tag_t tag)
|
||||
{
|
||||
int rc = ORTE_SUCCESS;
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Blocking version */
|
||||
static int xcast(orte_jobid_t job,
|
||||
orte_buffer_t *buffer,
|
||||
orte_rml_tag_t tag)
|
||||
{
|
||||
int rc = ORTE_SUCCESS;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int xcast_gate(orte_gpr_trigger_cb_fn_t cbfunc)
|
||||
{
|
||||
int rc;
|
||||
|
||||
return ORTE_SUCCESS;
|
||||
}
|
Загрузка…
Ссылка в новой задаче
Block a user