root/oshmem/shmem/c/shmem_fence.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. shmem_fence
  2. shmem_ctx_fence

   1 /*
   2  * Copyright (c) 2013      Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  */
  10 #include "oshmem_config.h"
  11 
  12 #include "oshmem/constants.h"
  13 #include "oshmem/include/shmem.h"
  14 
  15 #include "oshmem/mca/spml/spml.h"
  16 
  17 #if OSHMEM_PROFILING
  18 #include "oshmem/include/pshmem.h"
  19 #pragma weak shmem_fence = pshmem_fence
  20 #pragma weak shmem_ctx_fence = pshmem_ctx_fence
  21 #include "oshmem/shmem/c/profile/defines.h"
  22 #endif
  23 
  24 void shmem_fence(void)
  25 {
  26 
  27     MCA_SPML_CALL(fence(oshmem_ctx_default));
  28 }
  29 
  30 void shmem_ctx_fence(shmem_ctx_t ctx)
  31 {
  32 
  33     MCA_SPML_CALL(fence(ctx));
  34 }

/* [<][>][^][v][top][bottom][index][help] */