This source file includes following definitions.
- oshmem_shmem_allgather
- oshmem_shmem_allgatherv
- oshmem_shmem_barrier
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 #include "oshmem_config.h"
  14 
  15 #include "oshmem/constants.h"
  16 #include "oshmem/runtime/runtime.h"
  17 #include "oshmem/runtime/params.h"
  18 
  19 int oshmem_shmem_allgather(void *send_buf, void *rcv_buf, int elem_size)
  20 {
  21     int rc;
  22 
  23     rc = PMPI_Allgather(send_buf, elem_size, MPI_BYTE,
  24                         rcv_buf, elem_size, MPI_BYTE, oshmem_comm_world);
  25 
  26     return rc;
  27 }
  28 
  29 int oshmem_shmem_allgatherv(void *send_buf, void* rcv_buf, int send_count,
  30                             int* rcv_size, int* displs)
  31 {
  32     int rc;
  33 
  34     rc = PMPI_Allgatherv(send_buf, send_count, MPI_BYTE,
  35                          rcv_buf, rcv_size, displs, MPI_BYTE, oshmem_comm_world);
  36 
  37     return rc;
  38 }
  39 
  40 void oshmem_shmem_barrier(void)
  41 {
  42     PMPI_Barrier(oshmem_comm_world);
  43 }