root/oshmem/shmem/c/shmem_context.c

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

DEFINITIONS

This source file includes following definitions.
  1. shmem_ctx_create
  2. shmem_ctx_destroy

   1 /*
   2  * Copyright (c) 2013-2018 Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * Copyright (c) 2019      Research Organization for Information Science
   5  *                         and Technology (RIST).  All rights reserved.
   6  * $COPYRIGHT$
   7  *
   8  * Additional copyrights may follow
   9  *
  10  * $HEADER$
  11  */
  12 
  13 #include "oshmem_config.h"
  14 
  15 #include <stdlib.h>
  16 
  17 #include "opal/runtime/opal_cr.h"
  18 #include "opal/util/output.h"
  19 
  20 #include "oshmem/constants.h"
  21 #include "oshmem/include/shmem.h"
  22 #include "oshmem/mca/spml/spml.h"
  23 #include "oshmem/runtime/params.h"
  24 #include "oshmem/runtime/runtime.h"
  25 #include "oshmem/shmem/shmem_api_logger.h"
  26 
  27 #if OSHMEM_PROFILING
  28 #include "oshmem/include/pshmem.h"
  29 #pragma weak shmem_ctx_create = pshmem_ctx_create
  30 #pragma weak shmem_ctx_destroy = pshmem_ctx_destroy
  31 #include "oshmem/shmem/c/profile/defines.h"
  32 #endif
  33 
  34 int shmem_ctx_create(long options, shmem_ctx_t *ctx)
  35 {
  36     return MCA_SPML_CALL(ctx_create(options, ctx));
  37 }
  38 
  39 void shmem_ctx_destroy(shmem_ctx_t ctx)
  40 {
  41     MCA_SPML_CALL(ctx_destroy(ctx));
  42 }

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