552c9ca5a0
WHAT: Open our low-level communication infrastructure by moving all necessary components (btl/rcache/allocator/mpool) down in OPAL All the components required for inter-process communications are currently deeply integrated in the OMPI layer. Several groups/institutions have express interest in having a more generic communication infrastructure, without all the OMPI layer dependencies. This communication layer should be made available at a different software level, available to all layers in the Open MPI software stack. As an example, our ORTE layer could replace the current OOB and instead use the BTL directly, gaining access to more reactive network interfaces than TCP. Similarly, external software libraries could take advantage of our highly optimized AM (active message) communication layer for their own purpose. UTK with support from Sandia, developped a version of Open MPI where the entire communication infrastucture has been moved down to OPAL (btl/rcache/allocator/mpool). Most of the moved components have been updated to match the new schema, with few exceptions (mainly BTLs where I have no way of compiling/testing them). Thus, the completion of this RFC is tied to being able to completing this move for all BTLs. For this we need help from the rest of the Open MPI community, especially those supporting some of the BTLs. A non-exhaustive list of BTLs that qualify here is: mx, portals4, scif, udapl, ugni, usnic. This commit was SVN r32317.
101 строка
3.4 KiB
C
101 строка
3.4 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2011 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) 2006 Sandia National Laboratories. All rights
|
|
* reserved.
|
|
* Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef MCA_BTL_USNIC_PROC_H
|
|
#define MCA_BTL_USNIC_PROC_H
|
|
|
|
#include "opal/class/opal_object.h"
|
|
|
|
#include "btl_usnic.h"
|
|
#include "btl_usnic_endpoint.h"
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
/**
|
|
* Represents the state of a remote process and the set of addresses
|
|
* that it exports. An array of these are cached on the usnic
|
|
* component (not the usnic module).
|
|
*
|
|
* Also cache an instance of mca_btl_base_endpoint_t for each BTL
|
|
* module that attempts to open a connection to the process.
|
|
*/
|
|
typedef struct opal_btl_usnic_proc_t {
|
|
/** allow proc to be placed on a list */
|
|
opal_list_item_t super;
|
|
|
|
/** pointer to corresponding opal_proc_t */
|
|
opal_proc_t *proc_opal;
|
|
|
|
/** Addresses received via modex for this remote proc */
|
|
opal_btl_usnic_addr_t* proc_modex;
|
|
/** Number of entries in the proc_modex array */
|
|
size_t proc_modex_count;
|
|
/** Whether the modex entry is "claimed" by a module or not */
|
|
bool *proc_modex_claimed;
|
|
|
|
/** Array of endpoints that have been created to access this proc */
|
|
struct mca_btl_base_endpoint_t **proc_endpoints;
|
|
/** Number of entries in the proc_endpoints array */
|
|
size_t proc_endpoint_count;
|
|
|
|
/**
|
|
* A table giving the chosen pairing between modules and endpoint
|
|
* addresses. It has size mca_btl_usnic_component.num_modules.
|
|
* j=proc_ep_match_table[i] means that
|
|
* mca_btl_usnic_component.usnic_active_modules[i] should be paired with
|
|
* proc_modex[j]. If there is no pairing for proc_modex[i] then
|
|
* proc_ep_match_table[i] will be set to -1
|
|
*
|
|
* If matchings have not yet been computed for this proc, the pointer will
|
|
* be NULL.
|
|
*/
|
|
int *proc_ep_match_table;
|
|
|
|
/**
|
|
* true iff proc_ep_match_table != NULL and it contains at least one entry
|
|
* that is not equal to -1.
|
|
*/
|
|
bool proc_match_exists;
|
|
} opal_btl_usnic_proc_t;
|
|
|
|
OBJ_CLASS_DECLARATION(opal_btl_usnic_proc_t);
|
|
|
|
|
|
opal_btl_usnic_proc_t *opal_btl_usnic_proc_lookup_ompi(opal_proc_t* opal_proc);
|
|
|
|
struct opal_btl_usnic_module_t;
|
|
|
|
opal_btl_usnic_endpoint_t *
|
|
opal_btl_usnic_proc_lookup_endpoint(struct opal_btl_usnic_module_t *receiver,
|
|
uint64_t sender_hashed_rte_name);
|
|
|
|
int opal_btl_usnic_proc_match(opal_proc_t* opal_proc,
|
|
struct opal_btl_usnic_module_t *module,
|
|
opal_btl_usnic_proc_t **proc);
|
|
int
|
|
opal_btl_usnic_create_endpoint(struct opal_btl_usnic_module_t *module,
|
|
opal_btl_usnic_proc_t *proc,
|
|
opal_btl_usnic_endpoint_t **endpoint_o);
|
|
|
|
END_C_DECLS
|
|
|
|
#endif
|