root/ompi/patterns/comm/coll_ops.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2009-2012 Mellanox Technologies.  All rights reserved.
   3  * Copyright (c) 2009-2012 Oak Ridge National Laboratory.  All rights reserved.
   4  * Copyright (c) 2012      Los Alamos National Security, LLC.
   5  *                         All rights reserved.
   6  * Copyright (c) 2017      IBM Corporation. All rights reserved.
   7  * $COPYRIGHT$
   8  *
   9  * Additional copyrights may follow
  10  *
  11  * $HEADER$
  12  */
  13 
  14 #ifndef COMM_COLL_OP_TYPES_H
  15 #define COMM_COLL_OP_TYPES_H
  16 
  17 #include "ompi_config.h"
  18 #include "ompi/communicator/communicator.h"
  19 #include "ompi/datatype/ompi_datatype.h"
  20 #include "ompi/proc/proc.h"
  21 
  22 BEGIN_C_DECLS
  23 
  24 #define OMPI_COMMON_TAG_ALLREDUCE 99
  25 #define OMPI_COMMON_TAG_BCAST     98
  26 
  27 
  28 
  29 
  30 OMPI_DECLSPEC int ompi_comm_allgather_pml(void *src_buf, void *dest_buf, int count,
  31         ompi_datatype_t *dtype, int my_rank_in_group, int n_peers,
  32         int *ranks_in_comm,ompi_communicator_t *comm);
  33 OMPI_DECLSPEC int ompi_comm_allreduce_pml(void *sbuf, void *rbuf, int count,
  34         ompi_datatype_t *dtype, int my_rank_in_group,
  35         struct ompi_op_t *op, int n_peers,int *ranks_in_comm,
  36         ompi_communicator_t *comm);
  37 OMPI_DECLSPEC int ompi_comm_bcast_pml(void *buffer, int root, int count,
  38         ompi_datatype_t *dtype, int my_rank_in_group,
  39         int n_peers, int *ranks_in_comm,ompi_communicator_t
  40         *comm);
  41 
  42 /* reduction operations supported */
  43 #define OP_SUM 1
  44 #define OP_MAX 2
  45 #define OP_MIN 3
  46 
  47 #define TYPE_INT4 1
  48 
  49 
  50 END_C_DECLS
  51 
  52 #endif /* COMM_COLL_OP_TYPES_H */

/* [<][>][^][v][top][bottom][index][help] */