2005-08-31 05:43:48 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2012-03-06 02:23:44 +04:00
|
|
|
* Copyright (c) 2004-2012 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-08-31 05:43:48 +04:00
|
|
|
* 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$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_COLL_TUNED_TOPO_H_HAS_BEEN_INCLUDED
|
|
|
|
#define MCA_COLL_TUNED_TOPO_H_HAS_BEEN_INCLUDED
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
2006-10-24 01:46:30 +04:00
|
|
|
#define MAXTREEFANOUT 32
|
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
BEGIN_C_DECLS
|
2005-08-31 05:43:48 +04:00
|
|
|
|
2012-03-06 02:23:44 +04:00
|
|
|
typedef struct ompi_coll_tree_t {
|
|
|
|
int32_t tree_root;
|
|
|
|
int32_t tree_fanout;
|
|
|
|
int32_t tree_bmtree;
|
|
|
|
int32_t tree_prev;
|
|
|
|
int32_t tree_next[MAXTREEFANOUT];
|
|
|
|
int32_t tree_nextsize;
|
|
|
|
} ompi_coll_tree_t;
|
|
|
|
|
|
|
|
ompi_coll_tree_t*
|
|
|
|
ompi_coll_tuned_topo_build_tree( int fanout,
|
|
|
|
struct ompi_communicator_t* com,
|
|
|
|
int root );
|
|
|
|
ompi_coll_tree_t*
|
|
|
|
ompi_coll_tuned_topo_build_in_order_bintree( struct ompi_communicator_t* comm );
|
|
|
|
|
|
|
|
ompi_coll_tree_t*
|
|
|
|
ompi_coll_tuned_topo_build_bmtree( struct ompi_communicator_t* comm,
|
|
|
|
int root );
|
|
|
|
ompi_coll_tree_t*
|
|
|
|
ompi_coll_tuned_topo_build_in_order_bmtree( struct ompi_communicator_t* comm,
|
|
|
|
int root );
|
|
|
|
ompi_coll_tree_t*
|
|
|
|
ompi_coll_tuned_topo_build_chain( int fanout,
|
|
|
|
struct ompi_communicator_t* com,
|
|
|
|
int root );
|
|
|
|
|
|
|
|
int ompi_coll_tuned_topo_destroy_tree( ompi_coll_tree_t** tree );
|
|
|
|
|
|
|
|
/* debugging stuff, will be removed later */
|
|
|
|
int ompi_coll_tuned_topo_dump_tree (ompi_coll_tree_t* tree, int rank);
|
2005-09-10 03:05:17 +04:00
|
|
|
|
2009-08-20 15:42:18 +04:00
|
|
|
END_C_DECLS
|
2005-08-31 05:43:48 +04:00
|
|
|
|
|
|
|
#endif /* MCA_COLL_TUNED_TOPO_H_HAS_BEEN_INCLUDED */
|
|
|
|
|