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.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* 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 02:45:48 +04:00
|
|
|
#include "opal/threads/condition.h"
|
2005-07-04 04:13:44 +04:00
|
|
|
#include "opal/util/cmd_line.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "request/request.h"
|
|
|
|
#include "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)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2005-03-27 17:05:23 +04:00
|
|
|
int mca_topo_unity_component_init_query(bool enable_progress_threads,
|
|
|
|
bool enable_mpi_threads);
|
2004-08-02 04:24:22 +04:00
|
|
|
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);
|
2004-07-21 02:55:48 +04:00
|
|
|
|
|
|
|
int mca_topo_unity_module_init (struct ompi_communicator_t *comm);
|
|
|
|
int mca_topo_unity_module_finalize (struct ompi_communicator_t *comm);
|
2004-03-08 05:54:05 +03:00
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
/*
|
|
|
|
* ******************************************************************
|
|
|
|
* ********************* meta functions end *************************
|
|
|
|
* ******************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ******************************************************************
|
|
|
|
* ********* 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 :-)
|
|
|
|
* ******************************************************************
|
|
|
|
*/
|
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2004-08-02 04:24:22 +04:00
|
|
|
int mca_topo_unity_cart_map (struct ompi_communicator_t *comm,
|
2004-03-08 05:54:05 +03:00
|
|
|
int ndims,
|
|
|
|
int *dims,
|
|
|
|
int *periods,
|
|
|
|
int *newrank);
|
|
|
|
|
2004-08-02 04:24:22 +04:00
|
|
|
int mca_topo_unity_graph_map (struct ompi_communicator_t *comm,
|
2004-03-08 05:54:05 +03:00
|
|
|
int nnodes,
|
|
|
|
int *index,
|
|
|
|
int *edges,
|
|
|
|
int *newrank);
|
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
/*
|
|
|
|
* ******************************************************************
|
|
|
|
* ************ functions implemented in this module end ************
|
|
|
|
* ******************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endif /* MCA_TOPO_UNITY_H */
|