root/ompi/mca/coll/sync/coll_sync_scatterv.c

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

DEFINITIONS

This source file includes following definitions.
  1. mca_coll_sync_scatterv

   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2017 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2009      Cisco Systems, Inc.  All rights reserved.
  13  * $COPYRIGHT$
  14  *
  15  * Additional copyrights may follow
  16  *
  17  * $HEADER$
  18  */
  19 
  20 #include "ompi_config.h"
  21 
  22 #include "coll_sync.h"
  23 
  24 
  25 /*
  26  *      scatterv
  27  *
  28  *      Function:       - scatterv
  29  *      Accepts:        - same arguments as MPI_Scatterv()
  30  *      Returns:        - MPI_SUCCESS or error code
  31  */
  32 int mca_coll_sync_scatterv(const void *sbuf, const int *scounts,
  33                            const int *disps, struct ompi_datatype_t *sdtype,
  34                            void *rbuf, int rcount,
  35                            struct ompi_datatype_t *rdtype, int root,
  36                            struct ompi_communicator_t *comm,
  37                            mca_coll_base_module_t *module)
  38 {
  39     mca_coll_sync_module_t *s = (mca_coll_sync_module_t*) module;
  40 
  41     if (s->in_operation) {
  42         return s->c_coll.coll_scatterv(sbuf, scounts, disps, sdtype,
  43                                        rbuf, rcount, rdtype, root, comm,
  44                                        s->c_coll.coll_scatterv_module);
  45     }
  46     COLL_SYNC(s, s->c_coll.coll_scatterv(sbuf, scounts, disps, sdtype,
  47                                          rbuf, rcount, rdtype, root, comm,
  48                                          s->c_coll.coll_scatterv_module));
  49 }

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