This source file includes following definitions.
- ompi_type_get_attr_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 #include "ompi/attribute/attribute.h"
  26 #include "ompi/datatype/ompi_datatype.h"
  27 
  28 #if OMPI_BUILD_MPI_PROFILING
  29 #if OPAL_HAVE_WEAK_SYMBOLS
  30 #pragma weak PMPI_TYPE_GET_ATTR = ompi_type_get_attr_f
  31 #pragma weak pmpi_type_get_attr = ompi_type_get_attr_f
  32 #pragma weak pmpi_type_get_attr_ = ompi_type_get_attr_f
  33 #pragma weak pmpi_type_get_attr__ = ompi_type_get_attr_f
  34 
  35 #pragma weak PMPI_Type_get_attr_f = ompi_type_get_attr_f
  36 #pragma weak PMPI_Type_get_attr_f08 = ompi_type_get_attr_f
  37 #else
  38 OMPI_GENERATE_F77_BINDINGS (PMPI_TYPE_GET_ATTR,
  39                            pmpi_type_get_attr,
  40                            pmpi_type_get_attr_,
  41                            pmpi_type_get_attr__,
  42                            pompi_type_get_attr_f,
  43                            (MPI_Fint *type, MPI_Fint *type_keyval, MPI_Aint *attribute_val, ompi_fortran_logical_t *flag, MPI_Fint *ierr),
  44                            (type, type_keyval, attribute_val, flag, ierr) )
  45 #endif
  46 #endif
  47 
  48 #if OPAL_HAVE_WEAK_SYMBOLS
  49 #pragma weak MPI_TYPE_GET_ATTR = ompi_type_get_attr_f
  50 #pragma weak mpi_type_get_attr = ompi_type_get_attr_f
  51 #pragma weak mpi_type_get_attr_ = ompi_type_get_attr_f
  52 #pragma weak mpi_type_get_attr__ = ompi_type_get_attr_f
  53 
  54 #pragma weak MPI_Type_get_attr_f = ompi_type_get_attr_f
  55 #pragma weak MPI_Type_get_attr_f08 = ompi_type_get_attr_f
  56 #else
  57 #if ! OMPI_BUILD_MPI_PROFILING
  58 OMPI_GENERATE_F77_BINDINGS (MPI_TYPE_GET_ATTR,
  59                            mpi_type_get_attr,
  60                            mpi_type_get_attr_,
  61                            mpi_type_get_attr__,
  62                            ompi_type_get_attr_f,
  63                            (MPI_Fint *type, MPI_Fint *type_keyval, MPI_Aint *attribute_val, ompi_fortran_logical_t *flag, MPI_Fint *ierr),
  64                            (type, type_keyval, attribute_val, flag, ierr) )
  65 #else
  66 #define ompi_type_get_attr_f pompi_type_get_attr_f
  67 #endif
  68 #endif
  69 
  70 void ompi_type_get_attr_f(MPI_Fint *type, MPI_Fint *type_keyval,
  71                          MPI_Aint *attribute_val, ompi_fortran_logical_t *flag,
  72                          MPI_Fint *ierr)
  73 {
  74     int c_ierr;
  75     MPI_Datatype c_type = PMPI_Type_f2c(*type);
  76     OMPI_LOGICAL_NAME_DECL(flag);
  77 
  78     
  79 
  80 
  81     c_ierr = ompi_attr_get_aint(c_type->d_keyhash,
  82                                 OMPI_FINT_2_INT(*type_keyval),
  83                                 attribute_val,
  84                                 OMPI_LOGICAL_SINGLE_NAME_CONVERT(flag));
  85     if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);
  86 
  87     OMPI_SINGLE_INT_2_LOGICAL(flag);
  88 }