This source file includes following definitions.
- MPI_Win_create_dynamic
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 #include "ompi_config.h"
  24 
  25 #include <stdio.h>
  26 
  27 #include "ompi/mpi/c/bindings.h"
  28 #include "ompi/runtime/params.h"
  29 #include "ompi/communicator/communicator.h"
  30 #include "ompi/errhandler/errhandler.h"
  31 #include "ompi/info/info.h"
  32 #include "ompi/win/win.h"
  33 #include "ompi/memchecker.h"
  34 
  35 #if OMPI_BUILD_MPI_PROFILING
  36 #if OPAL_HAVE_WEAK_SYMBOLS
  37 #pragma weak MPI_Win_create_dynamic = PMPI_Win_create_dynamic
  38 #endif
  39 #define MPI_Win_create_dynamic PMPI_Win_create_dynamic
  40 #endif
  41 
  42 static const char FUNC_NAME[] = "MPI_Win_create_dynamic";
  43 
  44 
  45 int MPI_Win_create_dynamic(MPI_Info info, MPI_Comm comm, MPI_Win *win)
  46 {
  47     int ret = MPI_SUCCESS;
  48 
  49     MEMCHECKER(
  50         memchecker_comm(comm);
  51     );
  52     
  53     if (MPI_PARAM_CHECK) {
  54         OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
  55 
  56         if (ompi_comm_invalid (comm)) {
  57             return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_COMM,
  58                                           FUNC_NAME);
  59 
  60         } else if (NULL == info || ompi_info_is_freed(info)) {
  61             return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_INFO,
  62                                           FUNC_NAME);
  63 
  64         } else if (NULL == win) {
  65             return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_WIN, FUNC_NAME);
  66         }
  67     }
  68 
  69     
  70     if (OMPI_COMM_IS_INTER(comm)) {
  71         return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_COMM, FUNC_NAME);
  72     }
  73 
  74     OPAL_CR_ENTER_LIBRARY();
  75 
  76     
  77     ret = ompi_win_create_dynamic(&(info->super), comm, win);
  78     if (OMPI_SUCCESS != ret) {
  79         *win = MPI_WIN_NULL;
  80         OPAL_CR_EXIT_LIBRARY();
  81         return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_WIN, FUNC_NAME);
  82     }
  83 
  84     OPAL_CR_EXIT_LIBRARY();
  85     return MPI_SUCCESS;
  86 }