This source file includes following definitions.
- MPI_Unpack_external
   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 
  26 #include "ompi/mpi/c/bindings.h"
  27 #include "ompi/runtime/params.h"
  28 #include "ompi/communicator/communicator.h"
  29 #include "ompi/errhandler/errhandler.h"
  30 #include "ompi/datatype/ompi_datatype.h"
  31 #include "opal/datatype/opal_convertor.h"
  32 #include "ompi/memchecker.h"
  33 
  34 #if OMPI_BUILD_MPI_PROFILING
  35 #if OPAL_HAVE_WEAK_SYMBOLS
  36 #pragma weak MPI_Unpack_external = PMPI_Unpack_external
  37 #endif
  38 #define MPI_Unpack_external PMPI_Unpack_external
  39 #endif
  40 
  41 static const char FUNC_NAME[] = "MPI_Unpack_external";
  42 
  43 
  44 int MPI_Unpack_external (const char datarep[], const void *inbuf, MPI_Aint insize,
  45                          MPI_Aint *position, void *outbuf, int outcount,
  46                          MPI_Datatype datatype)
  47 {
  48     int rc = MPI_SUCCESS;
  49 
  50     MEMCHECKER(
  51         memchecker_datatype(datatype);
  52         memchecker_call(&opal_memchecker_base_isdefined, outbuf, outcount, datatype);
  53     );
  54 
  55     if (MPI_PARAM_CHECK) {
  56         OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
  57         if ((NULL == inbuf) || (NULL == position)) {  
  58             return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_ARG, FUNC_NAME);
  59         } else if (outcount < 0) {
  60             return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_COUNT, FUNC_NAME);
  61         }
  62         OMPI_CHECK_DATATYPE_FOR_RECV(rc, datatype, outcount);
  63         OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
  64         OMPI_CHECK_USER_BUFFER(rc, outbuf, datatype, outcount);
  65         OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
  66     }
  67 
  68     OPAL_CR_ENTER_LIBRARY();
  69 
  70     rc = ompi_datatype_unpack_external(datarep, inbuf, insize,
  71                                        position, outbuf, outcount,
  72                                        datatype);
  73     OPAL_CR_EXIT_LIBRARY();
  74 
  75     OMPI_ERRHANDLER_RETURN(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
  76 }