3f8d294191
Based on work from usNIC, the best way to use the reachability information the reachable components return is to build a connectivity graph between the two peers and run a bipartite graph solver. Rather than returning the "best" pairing, the reachability framework now returns the entire mapping, allowing a (soon to be added) graph solver to build the "optimal" connectivity pairing. Practically, this means changing the return type of the reachable() function and rewriting the weighted_reachable() function to return the full mapping. The netlink_reachable() function still always returns NULL. At the same time, fix bit-rot in the weighted component and enable builds of the component by removing the opal_ignore. Also, add IPv6 support to the weighted component to support both use cases in the TCP BTL. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
39 строки
693 B
C
39 строки
693 B
C
/*
|
|
* Copyright (c) 2014 Intel, Inc. All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
/** @file:
|
|
*/
|
|
|
|
#ifndef MCA_REACHABLE_BASE_H
|
|
#define MCA_REACHABLE_BASE_H
|
|
|
|
#include "opal_config.h"
|
|
#include "opal/types.h"
|
|
|
|
#include "opal/mca/mca.h"
|
|
#include "opal/mca/base/mca_base_framework.h"
|
|
|
|
#include "opal/mca/reachable/reachable.h"
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
OPAL_DECLSPEC extern mca_base_framework_t opal_reachable_base_framework;
|
|
|
|
/**
|
|
* Select a reachable module
|
|
*/
|
|
OPAL_DECLSPEC int opal_reachable_base_select(void);
|
|
|
|
OPAL_DECLSPEC opal_reachable_t * opal_reachable_allocate(unsigned int num_local,
|
|
unsigned int num_remote);
|
|
|
|
|
|
END_C_DECLS
|
|
|
|
#endif
|