This source file includes following definitions.
- ompi_win_create_f
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 #include "ompi_config.h"
  23 
  24 #include "ompi/mpi/fortran/mpif-h/bindings.h"
  25 
  26 #if OMPI_BUILD_MPI_PROFILING
  27 #if OPAL_HAVE_WEAK_SYMBOLS
  28 #pragma weak PMPI_WIN_CREATE = ompi_win_create_f
  29 #pragma weak pmpi_win_create = ompi_win_create_f
  30 #pragma weak pmpi_win_create_ = ompi_win_create_f
  31 #pragma weak pmpi_win_create__ = ompi_win_create_f
  32 
  33 #pragma weak PMPI_Win_create_f = ompi_win_create_f
  34 #pragma weak PMPI_Win_create_f08 = ompi_win_create_f
  35 #else
  36 OMPI_GENERATE_F77_BINDINGS (PMPI_WIN_CREATE,
  37                            pmpi_win_create,
  38                            pmpi_win_create_,
  39                            pmpi_win_create__,
  40                            pompi_win_create_f,
  41                            (char *base, MPI_Aint *size, MPI_Fint *disp_unit, MPI_Fint *info, MPI_Fint *comm, MPI_Fint *win, MPI_Fint *ierr),
  42                            (base, size, disp_unit, info, comm, win, ierr) )
  43 #endif
  44 #endif
  45 
  46 #if OPAL_HAVE_WEAK_SYMBOLS
  47 #pragma weak MPI_WIN_CREATE = ompi_win_create_f
  48 #pragma weak mpi_win_create = ompi_win_create_f
  49 #pragma weak mpi_win_create_ = ompi_win_create_f
  50 #pragma weak mpi_win_create__ = ompi_win_create_f
  51 
  52 #pragma weak MPI_Win_create_f = ompi_win_create_f
  53 #pragma weak MPI_Win_create_f08 = ompi_win_create_f
  54 #else
  55 #if ! OMPI_BUILD_MPI_PROFILING
  56 OMPI_GENERATE_F77_BINDINGS (MPI_WIN_CREATE,
  57                            mpi_win_create,
  58                            mpi_win_create_,
  59                            mpi_win_create__,
  60                            ompi_win_create_f,
  61                            (char *base, MPI_Aint *size, MPI_Fint *disp_unit, MPI_Fint *info, MPI_Fint *comm, MPI_Fint *win, MPI_Fint *ierr),
  62                            (base, size, disp_unit, info, comm, win, ierr) )
  63 #else
  64 #define ompi_win_create_f pompi_win_create_f
  65 #endif
  66 #endif
  67 
  68 
  69 void ompi_win_create_f(char *base, MPI_Aint *size, MPI_Fint *disp_unit,
  70                       MPI_Fint *info, MPI_Fint *comm, MPI_Fint *win,
  71                       MPI_Fint *ierr)
  72 {
  73     int c_ierr;
  74     MPI_Win c_win;
  75     MPI_Info c_info;
  76     MPI_Comm c_comm;
  77 
  78     c_comm = PMPI_Comm_f2c(*comm);
  79     c_info = PMPI_Info_f2c(*info);
  80 
  81     c_ierr = PMPI_Win_create(base, *size,
  82                             OMPI_FINT_2_INT(*disp_unit),
  83                             c_info, c_comm, &c_win);
  84     if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);
  85 
  86     if (MPI_SUCCESS == c_ierr) {
  87        *win = PMPI_Win_c2f(c_win);
  88     }
  89 }