1
1
openmpi/opal/mca/btl/usnic/btl_usnic_ext.h
Ralph Castain 552c9ca5a0 George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-)
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.
2014-07-26 00:47:28 +00:00

63 строки
1.4 KiB
C

/*
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#ifndef OPAL_BTL_USNIC_EXT_H
#define OPAL_BTL_USNIC_EXT_H
#include "opal_config.h"
#include <infiniband/verbs.h>
#include "opal_stdint.h"
typedef void *(*opal_btl_usnic_dlsym_fn_t)(const char *name);
typedef struct {
int lookup_version;
uint64_t magic;
opal_btl_usnic_dlsym_fn_t lookup;
} opal_btl_usnic_query_port_table_t;
#define USNIC_PORT_QUERY_MAGIC (0x43494e7375534355ULL)
/*
* Tells libusnic_verbs to enable UDP support.
*/
typedef int (*opal_btl_usnic_enable_udp_fn_t)(struct ibv_context *context);
/*
* Find out what the UD header length is
*/
typedef int (*opal_btl_usnic_get_ud_header_len_fn_t)(struct ibv_context *context,
uint8_t port_num);
/*
* Struct usnic extension function pointers
*/
typedef struct {
opal_btl_usnic_query_port_table_t qpt;
opal_btl_usnic_enable_udp_fn_t enable_udp;
opal_btl_usnic_get_ud_header_len_fn_t get_ud_header_len;
} opal_btl_usnic_ext_fns_t;
/*
* Global variable of usnic extension function pointers
*/
extern opal_btl_usnic_ext_fns_t opal_btl_usnic_ext;
/*
* Function to initialze the global variable of usnic extension
* function pointers
*/
void opal_btl_usnic_ext_init(struct ibv_context *ctx);
#endif /* OPAL_BTL_USNIC_EXT_H */