This source file includes following definitions.
- shmem_ctx_create
- shmem_ctx_destroy
1
2
3
4
5
6
7
8
9
10
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 }