root/ompi/contrib/libompitrace/isend.c

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

DEFINITIONS

This source file includes following definitions.
  1. MPI_Isend

   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) 2006-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_Isend(const void *buf, int count, MPI_Datatype type, int dest,
  32               int tag, MPI_Comm comm, MPI_Request *request)
  33 {
  34     char typename[MPI_MAX_OBJECT_NAME], commname[MPI_MAX_OBJECT_NAME];
  35     int len;
  36     int rank;
  37 
  38     PMPI_Comm_rank(MPI_COMM_WORLD, &rank);
  39     PMPI_Type_get_name(type, typename, &len);
  40     PMPI_Comm_get_name(comm, commname, &len);
  41 
  42     fprintf(stderr, "MPI_ISEND[%d]: buf %0" PRIxPTR " count %d datatype %s dest %d tag %d comm %s\n",
  43            rank, (uintptr_t) buf, count, typename, dest, tag, commname);
  44     fflush(stderr);
  45 
  46     return PMPI_Isend(buf, count, type, dest, tag, comm, request);
  47 }

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