root/ompi/mpi/fortran/mpif-h/win_flush_f.c

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

DEFINITIONS

This source file includes following definitions.
  1. ompi_win_flush_f

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2004-2005 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-2005 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) 2011-2012 Cisco Systems, Inc.  All rights reserved.
  14  * Copyright (c) 2014      Los Alamos National Security, LLC. All rights
  15  *                         reserved.
  16  * Copyright (c) 2015      Research Organization for Information Science
  17  *                         and Technology (RIST). All rights reserved.
  18  * $COPYRIGHT$
  19  *
  20  * Additional copyrights may follow
  21  *
  22  * $HEADER$
  23  */
  24 
  25 #include "ompi_config.h"
  26 
  27 #include "ompi/mpi/fortran/mpif-h/bindings.h"
  28 
  29 #if OMPI_BUILD_MPI_PROFILING
  30 #if OPAL_HAVE_WEAK_SYMBOLS
  31 #pragma weak PMPI_WIN_FLUSH = ompi_win_flush_f
  32 #pragma weak pmpi_win_flush = ompi_win_flush_f
  33 #pragma weak pmpi_win_flush_ = ompi_win_flush_f
  34 #pragma weak pmpi_win_flush__ = ompi_win_flush_f
  35 
  36 #pragma weak PMPI_Win_flush_f = ompi_win_flush_f
  37 #pragma weak PMPI_Win_flush_f08 = ompi_win_flush_f
  38 #else
  39 OMPI_GENERATE_F77_BINDINGS (PMPI_WIN_FLUSH,
  40                            pmpi_win_flush,
  41                            pmpi_win_flush_,
  42                            pmpi_win_flush__,
  43                            pompi_win_flush_f,
  44                            (MPI_Fint *rank, MPI_Fint *win, MPI_Fint *ierr),
  45                            (rank, win, ierr) )
  46 #endif
  47 #endif
  48 
  49 #if OPAL_HAVE_WEAK_SYMBOLS
  50 #pragma weak MPI_WIN_FLUSH = ompi_win_flush_f
  51 #pragma weak mpi_win_flush = ompi_win_flush_f
  52 #pragma weak mpi_win_flush_ = ompi_win_flush_f
  53 #pragma weak mpi_win_flush__ = ompi_win_flush_f
  54 
  55 #pragma weak MPI_Win_flush_f = ompi_win_flush_f
  56 #pragma weak MPI_Win_flush_f08 = ompi_win_flush_f
  57 #else
  58 #if ! OMPI_BUILD_MPI_PROFILING
  59 OMPI_GENERATE_F77_BINDINGS (MPI_WIN_FLUSH,
  60                            mpi_win_flush,
  61                            mpi_win_flush_,
  62                            mpi_win_flush__,
  63                            ompi_win_flush_f,
  64                            (MPI_Fint *rank, MPI_Fint *win, MPI_Fint *ierr),
  65                            (rank, win, ierr) )
  66 #else
  67 #define ompi_win_flush_f pompi_win_flush_f
  68 #endif
  69 #endif
  70 
  71 
  72 void ompi_win_flush_f(MPI_Fint *rank, MPI_Fint *win, MPI_Fint *ierr)
  73 {
  74     int c_ierr;
  75     MPI_Win c_win = PMPI_Win_f2c(*win);
  76 
  77     c_ierr = PMPI_Win_flush(OMPI_FINT_2_INT(*rank), c_win);
  78     if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);
  79 }

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