root/ompi/contrib/libompitrace/allgatherv.c

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

DEFINITIONS

This source file includes following definitions.
  1. MPI_Allgatherv

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
   4  *                         University Research and Technology
   5  *                         Corporation.  All rights reserved.
   6  * Copyright (c) 2004-2005 The University of Tennessee and The University
   7  *                         of Tennessee Research Foundation.  All rights
   8  *                         reserved.
   9  * Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
  10  *                         University of Stuttgart.  All rights reserved.
  11  * Copyright (c) 2004-2005 The Regents of the University of California.
  12  *                         All rights reserved.
  13  * Copyright (c) 2009      Cisco Systems, Inc.  All rights reserved.
  14  * Copyright (c) 2013      Los Alamos National Security, LLC.  All rights
  15  *                         reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  */
  22 
  23 #include "ompi_config.h"
  24 
  25 #include <stdio.h>
  26 
  27 #include "opal_stdint.h"
  28 
  29 #include "ompi/mpi/c/bindings.h"
  30 
  31 int MPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
  32                    void *recvbuf, const int recvcounts[], const int displs[],
  33                    MPI_Datatype recvtype, MPI_Comm comm)
  34 {
  35     char sendtypename[MPI_MAX_OBJECT_NAME], recvtypename[MPI_MAX_OBJECT_NAME];
  36     char commname[MPI_MAX_OBJECT_NAME];
  37     int len;
  38     int rank;
  39 
  40     PMPI_Comm_rank(MPI_COMM_WORLD, &rank);
  41     PMPI_Type_get_name(sendtype, sendtypename, &len);
  42     PMPI_Type_get_name(recvtype, recvtypename, &len);
  43     PMPI_Comm_get_name(comm, commname, &len);
  44 
  45     fprintf(stderr, "MPI_ALLGATHERV[%d]: sendbuf %0" PRIxPTR " sendcount %d sendtype %s\n\trecvbuf %0" PRIxPTR " recvtype %s comm %s\n",
  46            rank, (uintptr_t) sendbuf, sendcount, sendtypename, (uintptr_t) recvbuf, recvtypename, commname);
  47     fflush(stderr);
  48 
  49     return PMPI_Allgatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, comm);
  50 }
  51 

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