This source file includes following definitions.
- ompi_attr_put_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/communicator/communicator.h"
  27 
  28 #if OMPI_BUILD_MPI_PROFILING
  29 #if OPAL_HAVE_WEAK_SYMBOLS
  30 #pragma weak PMPI_ATTR_PUT = ompi_attr_put_f
  31 #pragma weak pmpi_attr_put = ompi_attr_put_f
  32 #pragma weak pmpi_attr_put_ = ompi_attr_put_f
  33 #pragma weak pmpi_attr_put__ = ompi_attr_put_f
  34 
  35 #pragma weak PMPI_Attr_put_f = ompi_attr_put_f
  36 #pragma weak PMPI_Attr_put_f08 = ompi_attr_put_f
  37 #else
  38 OMPI_GENERATE_F77_BINDINGS (PMPI_ATTR_PUT,
  39                            pmpi_attr_put,
  40                            pmpi_attr_put_,
  41                            pmpi_attr_put__,
  42                            pompi_attr_put_f,
  43                            (MPI_Fint *comm, MPI_Fint *keyval, MPI_Fint *attribute_val, MPI_Fint *ierr),
  44                            (comm, keyval, attribute_val, ierr) )
  45 #endif
  46 #endif
  47 
  48 #if OPAL_HAVE_WEAK_SYMBOLS
  49 #pragma weak MPI_ATTR_PUT = ompi_attr_put_f
  50 #pragma weak mpi_attr_put = ompi_attr_put_f
  51 #pragma weak mpi_attr_put_ = ompi_attr_put_f
  52 #pragma weak mpi_attr_put__ = ompi_attr_put_f
  53 
  54 #pragma weak MPI_Attr_put_f = ompi_attr_put_f
  55 #pragma weak MPI_Attr_put_f08 = ompi_attr_put_f
  56 #else
  57 #if ! OMPI_BUILD_MPI_PROFILING
  58 OMPI_GENERATE_F77_BINDINGS (MPI_ATTR_PUT,
  59                            mpi_attr_put,
  60                            mpi_attr_put_,
  61                            mpi_attr_put__,
  62                            ompi_attr_put_f,
  63                            (MPI_Fint *comm, MPI_Fint *keyval, MPI_Fint *attribute_val, MPI_Fint *ierr),
  64                            (comm, keyval, attribute_val, ierr) )
  65 #else
  66 #define ompi_attr_put_f pompi_attr_put_f
  67 #endif
  68 #endif
  69 
  70 void ompi_attr_put_f(MPI_Fint *comm, MPI_Fint *keyval, MPI_Fint *attribute_val,
  71                     MPI_Fint *ierr)
  72 {
  73     int c_err;
  74     MPI_Comm c_comm = PMPI_Comm_f2c(*comm);
  75 
  76     
  77 
  78 
  79     c_err = ompi_attr_set_fint(COMM_ATTR,
  80                                c_comm,
  81                                &c_comm->c_keyhash,
  82                                OMPI_FINT_2_INT(*keyval),
  83                                *attribute_val,
  84                                false);
  85     if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_err);
  86 }