2007-12-21 09:02:00 +03:00
|
|
|
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
2004-12-27 11:56:33 +03:00
|
|
|
/*
|
2007-03-17 02:11:45 +03:00
|
|
|
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
2005-11-05 22:57:48 +03:00
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2007-12-21 09:02:00 +03:00
|
|
|
* Copyright (c) 2004-2007 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-12-27 11:56:33 +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.
|
2008-02-01 20:11:36 +03:00
|
|
|
* Copyright (c) 2007-2008 University of Houston. All rights reserved.
|
2008-07-29 02:40:57 +04:00
|
|
|
* Copyright (c) 2008 Cisco Systems, Inc. All rights reserved.
|
2004-12-27 11:56:33 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MCA_COLL_HIERARCH_EXPORT_H
|
|
|
|
#define MCA_COLL_HIERARCH_EXPORT_H
|
|
|
|
|
2008-02-01 20:11:36 +03:00
|
|
|
#define ALL_LEVELS 0
|
|
|
|
#define TWO_LEVELS 2
|
|
|
|
|
2004-12-27 11:56:33 +03:00
|
|
|
#include "ompi_config.h"
|
2009-03-13 05:10:32 +03:00
|
|
|
#include "ompi/constants.h"
|
2004-12-27 11:56:33 +03:00
|
|
|
|
|
|
|
#include "mpi.h"
|
2009-03-13 05:10:32 +03:00
|
|
|
#include "opal/class/opal_pointer_array.h"
|
2006-02-12 04:33:29 +03:00
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "ompi/mca/coll/coll.h"
|
|
|
|
#include "ompi/request/request.h"
|
2009-03-13 05:10:32 +03:00
|
|
|
#include "ompi/communicator/communicator.h"
|
2004-12-27 11:56:33 +03:00
|
|
|
|
2007-08-24 00:41:29 +04:00
|
|
|
BEGIN_C_DECLS
|
2004-12-27 11:56:33 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Globally exported variable
|
|
|
|
*/
|
|
|
|
|
2008-07-29 02:40:57 +04:00
|
|
|
OMPI_MODULE_DECLSPEC extern const mca_coll_base_component_2_0_0_t mca_coll_hierarch_component;
|
2007-08-24 00:41:29 +04:00
|
|
|
|
2004-12-27 11:56:33 +03:00
|
|
|
extern int mca_coll_hierarch_priority_param;
|
|
|
|
extern int mca_coll_hierarch_verbose_param;
|
2005-10-12 02:05:24 +04:00
|
|
|
extern int mca_coll_hierarch_use_rdma_param;
|
2005-10-14 16:18:29 +04:00
|
|
|
extern int mca_coll_hierarch_ignore_sm_param;
|
2008-02-01 20:11:36 +03:00
|
|
|
extern int mca_coll_hierarch_detection_alg_param;
|
2008-08-18 20:05:44 +04:00
|
|
|
extern int mca_coll_hierarch_bcast_alg_param;
|
|
|
|
extern int mca_coll_hierarch_segsize_param;
|
|
|
|
|
|
|
|
|
2008-08-19 01:54:35 +04:00
|
|
|
#define COLL_HIERARCH_SEG_BCAST_ALG 0
|
|
|
|
#define COLL_HIERARCH_SEG1_BCAST_ALG 1
|
|
|
|
#define COLL_HIERARCH_SEG2_BCAST_ALG 2
|
|
|
|
#define COLL_HIERARCH_SEG3_BCAST_ALG 3
|
|
|
|
#define COLL_HIERARCH_BASIC_BCAST_ALG 4
|
2008-08-18 20:05:44 +04:00
|
|
|
|
|
|
|
|
2005-10-11 21:29:59 +04:00
|
|
|
|
2005-10-11 23:45:21 +04:00
|
|
|
#define HIER_DEFAULT_NUM_LLEAD 5
|
2005-02-24 18:11:07 +03:00
|
|
|
/*
|
|
|
|
* Data structure for attaching data to the communicator
|
|
|
|
*/
|
2005-03-02 16:28:39 +03:00
|
|
|
|
2005-10-14 22:11:21 +04:00
|
|
|
/* Clarifying some terminology:
|
|
|
|
* comm: the input communicator, consisting of several lower level communicators.
|
|
|
|
* lcomm: low level communicator, often refered to as subcommunicator
|
|
|
|
* lleader: local leader, a dedicated process of each low level communicator
|
2005-10-18 22:17:50 +04:00
|
|
|
ATTENTION: an lleader might be the 'head' of a low level
|
|
|
|
communicator of size one!
|
2005-10-14 22:11:21 +04:00
|
|
|
* llcomm: local leader communicator, grouping all local leaders of a comm.
|
|
|
|
*/
|
|
|
|
|
2007-08-24 00:41:29 +04:00
|
|
|
struct mca_coll_hierarch_module_t {
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t super;
|
2007-12-21 09:02:00 +03:00
|
|
|
|
|
|
|
struct ompi_communicator_t *hier_comm; /* link back to the attached comm */
|
|
|
|
struct ompi_communicator_t *hier_lcomm; /* low level communicator */
|
|
|
|
opal_pointer_array_t hier_llead; /* local leader communicator structure */
|
|
|
|
int hier_num_lleaders; /* number of local leaders */
|
|
|
|
int hier_level; /* level in the hierarchy. For debugging*/
|
|
|
|
int hier_num_reqs; /* num. of requests */
|
|
|
|
ompi_request_t **hier_reqs; /* list of requests */
|
|
|
|
int hier_num_colorarr; /* size of the colorarr array */
|
|
|
|
int *hier_llr; /* color array compacted (1 entry per color).
|
|
|
|
Array of size hier_num_lleaders */
|
|
|
|
int *hier_max_offset; /* Number of processes for each color.
|
|
|
|
Array of size hier_num_lleaders */
|
|
|
|
int *hier_colorarr; /* array containing the color of all procs */
|
2007-08-24 00:41:29 +04:00
|
|
|
};
|
|
|
|
typedef struct mca_coll_hierarch_module_t mca_coll_hierarch_module_t;
|
|
|
|
OBJ_CLASS_DECLARATION(mca_coll_hierarch_module_t);
|
|
|
|
|
2007-12-21 09:02:00 +03:00
|
|
|
struct mca_coll_hierarch_llead_t {
|
|
|
|
struct ompi_communicator_t *llcomm; /* local leader communicator */
|
|
|
|
int *lleaders; /* list of local leaders, ranks in comm */
|
|
|
|
int my_lleader; /* rank of my lleader in lcomm */
|
|
|
|
int am_lleader; /* am I an lleader? */
|
|
|
|
int offset; /* Offset used for this llcomm */
|
|
|
|
};
|
2005-10-14 21:41:44 +04:00
|
|
|
|
|
|
|
typedef struct mca_coll_hierarch_llead_t mca_coll_hierarch_llead_t;
|
2005-02-24 18:11:07 +03:00
|
|
|
|
2005-04-15 01:27:24 +04:00
|
|
|
|
2005-10-14 21:41:44 +04:00
|
|
|
static inline int mca_coll_hierarch_count_lleaders ( int size, int *carr)
|
2005-04-15 01:27:24 +04:00
|
|
|
{
|
2007-12-21 09:02:00 +03:00
|
|
|
/*
|
|
|
|
* Determine the number of local leaders. Please note, that any process
|
|
|
|
* with color = MPI_UNDEFINED will be counted as the head of a group of its own.
|
|
|
|
* Please note furthermore, that every process with color=MPI_UNDEFINED will be
|
|
|
|
* stored in this array on its own...
|
|
|
|
*/
|
2005-04-15 01:27:24 +04:00
|
|
|
int cnt, i, j, found;
|
2005-10-14 21:41:44 +04:00
|
|
|
int *llr=NULL;
|
2005-04-15 01:27:24 +04:00
|
|
|
|
2005-10-14 21:41:44 +04:00
|
|
|
llr = (int *) malloc ( size * sizeof(int));
|
|
|
|
if (NULL == llr ){
|
2005-10-18 22:17:50 +04:00
|
|
|
return OMPI_ERR_OUT_OF_RESOURCE;
|
2005-10-14 21:41:44 +04:00
|
|
|
}
|
2005-04-15 01:27:24 +04:00
|
|
|
|
2005-10-18 22:17:50 +04:00
|
|
|
llr[0] = carr[0];
|
|
|
|
for (cnt=1, i=1; i<size; i++ ) {
|
|
|
|
if ( carr[i] == MPI_UNDEFINED ) {
|
|
|
|
llr[cnt++] = carr[i];
|
|
|
|
continue;
|
2005-10-14 00:04:26 +04:00
|
|
|
}
|
2005-04-15 01:27:24 +04:00
|
|
|
for ( found=0, j=0; j<cnt; j++ ) {
|
|
|
|
if ( carr[i] == llr[j] ) {
|
|
|
|
found = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2005-10-18 22:17:50 +04:00
|
|
|
if ( !found ) {
|
2005-04-15 01:27:24 +04:00
|
|
|
llr[cnt++] = carr[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-10-14 21:41:44 +04:00
|
|
|
free (llr);
|
2005-04-15 01:27:24 +04:00
|
|
|
return cnt;
|
|
|
|
}
|
2005-10-14 21:41:44 +04:00
|
|
|
|
2005-10-15 21:04:01 +04:00
|
|
|
static inline int mca_coll_hierarch_get_offset ( int rank, int size, int *carr)
|
2005-10-14 21:41:44 +04:00
|
|
|
{
|
2005-10-15 21:04:01 +04:00
|
|
|
int offset, i, color = carr[rank];
|
2005-10-14 21:41:44 +04:00
|
|
|
|
2005-10-18 22:17:50 +04:00
|
|
|
if ( color == MPI_UNDEFINED ) {
|
|
|
|
/* always */
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2005-10-15 21:04:01 +04:00
|
|
|
for ( offset=0, i=0; i<=rank; i++) {
|
|
|
|
if ( carr[i] == color ) {
|
|
|
|
offset++;
|
2005-10-14 21:41:44 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-10-15 21:04:01 +04:00
|
|
|
return offset;
|
2005-10-14 21:41:44 +04:00
|
|
|
}
|
2005-04-15 01:27:24 +04:00
|
|
|
|
2005-10-14 00:04:26 +04:00
|
|
|
|
2005-10-14 16:18:29 +04:00
|
|
|
|
2005-10-15 21:04:01 +04:00
|
|
|
/* This function determine the parameters required in hierarchical
|
|
|
|
* collective operations. It is called from the collective operations themselves.
|
|
|
|
*
|
|
|
|
* @param root (input): rank of the root process in comm
|
2007-08-24 00:41:29 +04:00
|
|
|
* @param hierarch_module (input): module structure. Contains
|
2005-10-15 21:04:01 +04:00
|
|
|
* all relevant, precomputed data for this set of collectives.
|
|
|
|
*
|
|
|
|
* @param llroot (output): rank of the root process in llcomm, MPI_UNDEFINED for all
|
|
|
|
* processes not being part of the local leader communicator.
|
|
|
|
* @param lroot (output): rank of the local leader in the low level communicator,
|
|
|
|
* or MPI_UNDEFINED if there is no low level communicator.
|
|
|
|
* return value: llcomm (local leader communicator) or MPI_COMM_NULL for
|
|
|
|
* all processes not being part of the local leader communicator.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct ompi_communicator_t* mca_coll_hierarch_get_llcomm (int rroot,
|
2007-08-24 00:41:29 +04:00
|
|
|
mca_coll_hierarch_module_t *hierarch_module,
|
2005-10-15 21:04:01 +04:00
|
|
|
int* llroot,
|
|
|
|
int* lleader);
|
|
|
|
|
|
|
|
/* This function is supposed to set up all elements of the mca_coll_base_comm_t
|
|
|
|
* structure, including:
|
2007-08-24 00:41:29 +04:00
|
|
|
* hierarch_module->hier_num_lleaders: determine number of local leaders in the comms
|
|
|
|
* hierarch_module->hier_llr: array of size hier_num_lleaders containing the colors
|
|
|
|
* hierarch_module->hier_max_offset: array containing the counter for each color how often
|
2005-10-15 21:04:01 +04:00
|
|
|
* it appears in the colorarr array.
|
|
|
|
*/
|
2005-10-14 16:18:29 +04:00
|
|
|
|
2007-08-24 00:41:29 +04:00
|
|
|
int mca_coll_hierarch_get_llr ( mca_coll_hierarch_module_t *hierarch_module );
|
2005-04-15 01:27:24 +04:00
|
|
|
|
2005-10-14 21:41:44 +04:00
|
|
|
|
2005-10-15 21:04:01 +04:00
|
|
|
/* This function is supposed to set all elements of the llead structure based on the
|
|
|
|
* offset and the rank of the process.
|
|
|
|
*
|
|
|
|
* @param rank(input): rank of the calling process in comm
|
2007-08-24 00:41:29 +04:00
|
|
|
* @param hierarch_module(input): structure of the hierarchical module. Contains
|
2005-10-15 21:04:01 +04:00
|
|
|
* all relevant, precomputed data for this set of collectives.
|
|
|
|
* @param llead(output): ptr to the mca_coll_hierarch_llead_t element which should
|
|
|
|
* be set
|
|
|
|
* @param offset(input): offset which shall be used.
|
|
|
|
*/
|
2005-10-11 21:29:59 +04:00
|
|
|
|
2007-08-24 00:41:29 +04:00
|
|
|
int mca_coll_hierarch_get_all_lleaders ( int rank, mca_coll_hierarch_module_t *hierarch_module,
|
2005-10-15 21:04:01 +04:00
|
|
|
struct mca_coll_hierarch_llead_t *llead,
|
|
|
|
int offset );
|
2005-04-15 01:27:24 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2004-12-27 11:56:33 +03:00
|
|
|
/*
|
|
|
|
* coll API functions
|
|
|
|
*/
|
2005-10-12 02:05:24 +04:00
|
|
|
int mca_coll_hierarch_init_query(bool allow_hierarch_user_threads,
|
|
|
|
bool have_hidden_threads);
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *
|
2007-08-24 00:41:29 +04:00
|
|
|
mca_coll_hierarch_comm_query(struct ompi_communicator_t *comm, int *priority );
|
2004-12-27 11:56:33 +03:00
|
|
|
|
2007-08-24 00:41:29 +04:00
|
|
|
|
2008-07-29 02:40:57 +04:00
|
|
|
int mca_coll_hierarch_module_enable( mca_coll_base_module_t *module,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm);
|
2005-10-15 21:04:01 +04:00
|
|
|
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_module_finalize(struct ompi_communicator_t *comm);
|
2004-12-27 11:56:33 +03:00
|
|
|
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_allgather_intra(void *sbuf, int scount,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void *rbuf, int rcount,
|
|
|
|
struct ompi_datatype_t *rdtype,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module );
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_allgatherv_intra(void *sbuf, int scount,
|
2004-12-27 11:56:33 +03:00
|
|
|
struct ompi_datatype_t *sdtype,
|
2005-04-15 01:27:24 +04:00
|
|
|
void * rbuf, int *rcounts,
|
|
|
|
int *disps,
|
2004-12-27 11:56:33 +03:00
|
|
|
struct ompi_datatype_t *rdtype,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_allreduce_intra(void *sbuf, void *rbuf, int count,
|
|
|
|
struct ompi_datatype_t *dtype,
|
|
|
|
struct ompi_op_t *op,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_alltoall_intra(void *sbuf, int scount,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void* rbuf, int rcount,
|
|
|
|
struct ompi_datatype_t *rdtype,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_alltoallv_intra(void *sbuf, int *scounts,
|
|
|
|
int *sdisps,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void *rbuf, int *rcounts,
|
|
|
|
int *rdisps,
|
|
|
|
struct ompi_datatype_t *rdtype,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_alltoallw_intra(void *sbuf, int *scounts,
|
|
|
|
int *sdisps,
|
|
|
|
struct ompi_datatype_t **sdtypes,
|
|
|
|
void *rbuf, int *rcounts,
|
|
|
|
int *rdisps,
|
|
|
|
struct ompi_datatype_t **rdtypes,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2007-08-24 00:41:29 +04:00
|
|
|
int mca_coll_hierarch_barrier_intra(struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_bcast_intra(void *buff, int count,
|
|
|
|
struct ompi_datatype_t *datatype,
|
|
|
|
int root,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_exscan_intra(void *sbuf, void *rbuf, int count,
|
|
|
|
struct ompi_datatype_t *dtype,
|
|
|
|
struct ompi_op_t *op,
|
|
|
|
struct ompi_communicator_t *comm);
|
|
|
|
int mca_coll_hierarch_gather_intra(void *sbuf, int scount,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void *rbuf, int rcount,
|
|
|
|
struct ompi_datatype_t *rdtype,
|
|
|
|
int root,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_gatherv_intra(void *sbuf, int scount,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void *rbuf, int *rcounts, int *disps,
|
|
|
|
struct ompi_datatype_t *rdtype,
|
|
|
|
int root,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_reduce_intra(void *sbuf, void* rbuf, int count,
|
|
|
|
struct ompi_datatype_t *dtype,
|
|
|
|
struct ompi_op_t *op,
|
|
|
|
int root,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_reduce_scatter_intra(void *sbuf, void *rbuf,
|
|
|
|
int *rcounts,
|
|
|
|
struct ompi_datatype_t *dtype,
|
|
|
|
struct ompi_op_t *op,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_scan_intra(void *sbuf, void *rbuf, int count,
|
|
|
|
struct ompi_datatype_t *dtype,
|
|
|
|
struct ompi_op_t *op,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_scatter_intra(void *sbuf, int scount,
|
|
|
|
struct ompi_datatype_t *sdtype, void *rbuf,
|
|
|
|
int rcount, struct ompi_datatype_t *rdtype,
|
2007-08-24 00:41:29 +04:00
|
|
|
int root, struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2005-04-15 01:27:24 +04:00
|
|
|
int mca_coll_hierarch_scatterv_intra(void *sbuf, int *scounts, int *disps,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void* rbuf, int rcount,
|
|
|
|
struct ompi_datatype_t *rdtype, int root,
|
2007-08-24 00:41:29 +04:00
|
|
|
struct ompi_communicator_t *comm,
|
2008-07-29 02:40:57 +04:00
|
|
|
mca_coll_base_module_t *module);
|
2004-12-27 11:56:33 +03:00
|
|
|
|
2005-10-15 21:04:01 +04:00
|
|
|
/*
|
|
|
|
* These are trivial implementations of these routines used during comm_query/init,
|
|
|
|
* since we cannot access any other collectives
|
|
|
|
*/
|
|
|
|
int mca_coll_hierarch_allgather_tmp(void *sbuf, int scount,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void *rbuf, int rcount,
|
|
|
|
struct ompi_datatype_t *rdtype,
|
|
|
|
struct ompi_communicator_t *comm);
|
|
|
|
int mca_coll_hierarch_allreduce_tmp(void *sbuf, void *rbuf, int count,
|
|
|
|
struct ompi_datatype_t *dtype,
|
|
|
|
struct ompi_op_t *op,
|
|
|
|
struct ompi_communicator_t *comm);
|
|
|
|
int mca_coll_hierarch_bcast_tmp ( void *buf, int count, struct ompi_datatype_t *dtype,
|
|
|
|
int root, struct ompi_communicator_t *comm);
|
|
|
|
|
|
|
|
int mca_coll_hierarch_gather_tmp(void *sbuf, int scount,
|
|
|
|
struct ompi_datatype_t *sdtype,
|
|
|
|
void *rbuf, int rcount,
|
|
|
|
struct ompi_datatype_t *rdtype,
|
|
|
|
int root, struct ompi_communicator_t *comm);
|
|
|
|
int mca_coll_hierarch_reduce_tmp(void *sbuf, void *rbuf, int count,
|
|
|
|
struct ompi_datatype_t *dtype,
|
|
|
|
struct ompi_op_t *op,
|
|
|
|
int root, struct ompi_communicator_t *comm);
|
|
|
|
|
2007-03-17 02:11:45 +03:00
|
|
|
int mca_coll_hierarch_ft_event(int status);
|
2005-10-15 21:04:01 +04:00
|
|
|
|
2007-08-24 00:41:29 +04:00
|
|
|
END_C_DECLS
|
|
|
|
|
2004-12-27 11:56:33 +03:00
|
|
|
#endif /* MCA_COLL_HIERARCH_EXPORT_H */
|