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.
56 строки
1.4 KiB
C
56 строки
1.4 KiB
C
/*
|
|
* Copyright (c) 2008 Chelsio, Inc. All rights reserved.
|
|
* Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*
|
|
* @file
|
|
*/
|
|
|
|
#ifndef MCA_BTL_OPENIB_IP_H
|
|
#define MCA_BTL_OPENIB_IP_H
|
|
|
|
#include "opal_config.h"
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
/**
|
|
* Get an IP equivalent of a subnet ID.
|
|
*
|
|
* @param ib_dev (IN) IBV device
|
|
* @return Value of the IPv4 Address bitwise-and'ed with the Netmask
|
|
*/
|
|
extern uint64_t mca_btl_openib_get_ip_subnet_id(struct ibv_device *ib_dev,
|
|
uint8_t port);
|
|
|
|
/**
|
|
* Get the IPv4 address of the specified HCA/RNIC device and physical port.
|
|
*
|
|
* @param verbs (IN) cm_id verbs of the IBV device
|
|
* @param port (IN) physical port of the IBV device
|
|
* @return IPv4 Address
|
|
*/
|
|
extern uint32_t mca_btl_openib_rdma_get_ipv4addr(struct ibv_context *verbs,
|
|
uint8_t port);
|
|
|
|
/**
|
|
* Create a list of all available IBV devices and each device's
|
|
* relevant information. This is necessary for
|
|
* mca_btl_openib_rdma_get_ipv4addr to work.
|
|
*
|
|
* @return OPAL_SUCCESS or failure status
|
|
*/
|
|
extern int mca_btl_openib_build_rdma_addr_list(void);
|
|
|
|
/**
|
|
* Free the list of all available IBV devices created by
|
|
* mca_btl_openib_build_rdma_addr_list.
|
|
*/
|
|
extern void mca_btl_openib_free_rdma_addr_list(void);
|
|
|
|
END_C_DECLS
|
|
|
|
#endif
|