This source file includes following definitions.
- MPI_Pack_external_size
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 
  24 #include "ompi_config.h"
  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/datatype/ompi_datatype.h"
  32 #include "opal/datatype/opal_convertor.h"
  33 #include "ompi/memchecker.h"
  34 
  35 #if OMPI_BUILD_MPI_PROFILING
  36 #if OPAL_HAVE_WEAK_SYMBOLS
  37 #pragma weak MPI_Pack_external_size = PMPI_Pack_external_size
  38 #endif
  39 #define MPI_Pack_external_size PMPI_Pack_external_size
  40 #endif
  41 
  42 static const char FUNC_NAME[] = "MPI_Pack_external_size";
  43 
  44 
  45 int MPI_Pack_external_size(const char datarep[], int incount,
  46                            MPI_Datatype datatype, MPI_Aint *size)
  47 {
  48     int rc = MPI_SUCCESS;
  49 
  50     MEMCHECKER(
  51         memchecker_datatype(datatype);
  52     );
  53 
  54     if (MPI_PARAM_CHECK) {
  55         OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
  56         if (NULL == size) {
  57             return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG, FUNC_NAME);
  58         } else if (MPI_DATATYPE_NULL == datatype || NULL == datatype) {
  59             return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_TYPE, FUNC_NAME);
  60         }
  61     }
  62 
  63     OPAL_CR_ENTER_LIBRARY();
  64 
  65     rc = ompi_datatype_pack_external_size(datarep, incount,
  66                                           datatype, size);
  67     OPAL_CR_EXIT_LIBRARY();
  68 
  69     OMPI_ERRHANDLER_RETURN(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
  70 }