2004-03-08 05:54:05 +03: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.
|
2006-08-24 20:38:08 +04:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-03-08 05:54:05 +03:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_TOPO_UNTIY_H
|
|
|
|
#define MCA_TOPO_UNTIY_H
|
|
|
|
|
2004-11-01 17:44:14 +03:00
|
|
|
#include "ompi_config.h"
|
2005-07-04 04:13:44 +04:00
|
|
|
#include "opal/util/cmd_line.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "ompi/request/request.h"
|
|
|
|
#include "ompi/mca/topo/topo.h"
|
2004-03-08 05:54:05 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* ******************************************************************
|
|
|
|
* ******** functions which provide MCA interface comppliance *******
|
|
|
|
* ******************************************************************
|
|
|
|
* These functions are:
|
|
|
|
* - mca_topo_unity_module_open
|
|
|
|
* - mca_topo_unity_module_close
|
|
|
|
* - mca_topo_unity_module_query
|
|
|
|
* - mca_topo_unity_module_finalize
|
|
|
|
* These functions are always found on the mca_topo_unity_module
|
|
|
|
* structure. They are the "meta" functions to ensure smooth op.
|
|
|
|
* ******************************************************************
|
|
|
|
*/
|
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
2006-08-24 20:38:08 +04:00
|
|
|
extern "C" {
|
2004-03-08 05:54:05 +03:00
|
|
|
#endif
|
2004-07-21 02:55:48 +04:00
|
|
|
|
2006-08-24 20:38:08 +04:00
|
|
|
int mca_topo_unity_component_init_query(bool enable_progress_threads,
|
|
|
|
bool enable_mpi_threads);
|
|
|
|
struct mca_topo_base_module_1_0_0_t *
|
|
|
|
mca_topo_unity_component_comm_query (int *priority);
|
|
|
|
int mca_topo_unity_component_comm_unquery (struct ompi_communicator_t *comm);
|
|
|
|
|
|
|
|
int mca_topo_unity_module_init (struct ompi_communicator_t *comm);
|
|
|
|
int mca_topo_unity_module_finalize (struct ompi_communicator_t *comm);
|
|
|
|
|
2008-07-29 02:40:57 +04:00
|
|
|
OMPI_MODULE_DECLSPEC extern mca_topo_base_component_2_0_0_t mca_topo_unity_component;
|
2004-03-08 05:54:05 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* ******************************************************************
|
|
|
|
* ********* functions which are implemented in this module *********
|
|
|
|
* ******************************************************************
|
|
|
|
* This module defines just 2 functions:
|
|
|
|
* - graph_map
|
|
|
|
* - cart_map
|
|
|
|
* rest of the functions are filled in from the "base" module. Authors
|
|
|
|
* of other such topology modules are required to define only these 2
|
|
|
|
* functions. They are ofcourse free to implement all of them too :-)
|
|
|
|
* ******************************************************************
|
|
|
|
*/
|
2006-08-24 20:38:08 +04:00
|
|
|
int mca_topo_unity_cart_map (struct ompi_communicator_t *comm,
|
|
|
|
int ndims,
|
|
|
|
int *dims,
|
|
|
|
int *periods,
|
|
|
|
int *newrank);
|
2004-03-08 05:54:05 +03:00
|
|
|
|
2006-08-24 20:38:08 +04:00
|
|
|
int mca_topo_unity_graph_map (struct ompi_communicator_t *comm,
|
|
|
|
int nnodes,
|
|
|
|
int *index,
|
|
|
|
int *edges,
|
|
|
|
int *newrank);
|
2004-03-08 05:54:05 +03:00
|
|
|
/*
|
|
|
|
* ******************************************************************
|
|
|
|
* ************ functions implemented in this module end ************
|
|
|
|
* ******************************************************************
|
|
|
|
*/
|
|
|
|
|
2006-08-24 20:38:08 +04:00
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-03-08 05:54:05 +03:00
|
|
|
#endif /* MCA_TOPO_UNITY_H */
|