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.
70 строки
2.5 KiB
C
70 строки
2.5 KiB
C
/*
|
|
* Copyright (c) 2007-2012 Mellanox Technologies. All rights reserved.
|
|
* Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
|
|
*
|
|
* Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef COMMON_OFACM_XOOB_H
|
|
#define COMMON_OFACM_XOOB_H
|
|
|
|
#include "opal/class/opal_hash_table.h"
|
|
#include "connect.h"
|
|
|
|
extern opal_common_ofacm_base_component_t opal_common_ofacm_xoob;
|
|
|
|
typedef enum {
|
|
XOOB_ADDR_CONNECTING = 100,
|
|
XOOB_ADDR_CONNECTED,
|
|
XOOB_ADDR_CLOSED
|
|
} opal_common_ofacm_ib_addr_state_t;
|
|
|
|
struct ofacm_ib_address_t {
|
|
opal_list_item_t super;
|
|
void *key; /* the key with size 80bit - [subnet(64) LID(16bit)] */
|
|
uint64_t subnet_id; /* caching subnet_id */
|
|
uint16_t lid; /* caching lid */
|
|
opal_list_t pending_contexts; /* list of endpoints that use this ib_address */
|
|
struct opal_common_ofacm_base_qp_t *qps; /* pointer to qp that will be used
|
|
for communication with the
|
|
destination */
|
|
uint32_t remote_xrc_rcv_qp_num; /* remote xrc qp number */
|
|
opal_mutex_t addr_lock; /* protection */
|
|
opal_common_ofacm_ib_addr_state_t status; /* ib port status */
|
|
};
|
|
typedef struct ofacm_ib_address_t
|
|
ofacm_ib_address_t;
|
|
|
|
struct opal_common_ofacm_xoob_local_connection_context_t {
|
|
opal_common_ofacm_base_local_connection_context_t super;
|
|
ofacm_ib_address_t *addr;
|
|
uint32_t xrc_recv_qp_num; /* in xrc we will use it as recv qp */
|
|
uint32_t xrc_recv_psn;
|
|
};
|
|
typedef struct opal_common_ofacm_xoob_local_connection_context_t
|
|
opal_common_ofacm_xoob_local_connection_context_t;
|
|
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_common_ofacm_xoob_local_connection_context_t);
|
|
|
|
struct opal_common_ofacm_xoob_module_t {
|
|
opal_common_ofacm_base_module_t super;
|
|
opal_hash_table_t ib_addr_table; /**< used only for xrc.hash-table that
|
|
keeps table of all lids/subnets */
|
|
};
|
|
typedef struct opal_common_ofacm_xoob_module_t
|
|
opal_common_ofacm_xoob_module_t;
|
|
|
|
struct pending_context_t {
|
|
opal_list_item_t super;
|
|
opal_common_ofacm_xoob_local_connection_context_t *xcontext;
|
|
};
|
|
typedef struct pending_context_t
|
|
pending_context_t;
|
|
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(pending_context_t);
|
|
|
|
#endif
|