Skip to content

Commit bbe5da4

Browse files
authored
Merge pull request #5985 from hoopoepg/topic/fixed-oshmem-profile-build
OSHMEM/PROFILE: fixed oshmem profile build
2 parents c8d3ad0 + 4a3e837 commit bbe5da4

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

oshmem/include/oshmem/constants.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ enum {
105105
#define SHMEM_UNDEFINED -32766 /* undefined stuff */
106106

107107

108-
#define SHMEM_CTX_PRIVATE (1<<0)
109-
#define SHMEM_CTX_SERIALIZED (1<<1)
110-
#define SHMEM_CTX_NOSTORE (1<<2)
111-
112-
113108
#ifndef UNREFERENCED_PARAMETER
114109
#define UNREFERENCED_PARAMETER(P) ((void)P)
115110
#endif

oshmem/include/shmem.h.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ enum {
9999
#define SHMEM_VENDOR_STRING "http://www.open-mpi.org/"
100100
#define SHMEM_MAX_NAME_LEN 256
101101

102+
#define SHMEM_CTX_PRIVATE (1<<0)
103+
#define SHMEM_CTX_SERIALIZED (1<<1)
104+
#define SHMEM_CTX_NOSTORE (1<<2)
105+
102106
/*
103107
* Deprecated (but still valid) names
104108
*/
@@ -195,7 +199,9 @@ OSHMEM_DECLSPEC void *shmem_ptr(const void *ptr, int pe);
195199

196200
typedef struct { int dummy; } * shmem_ctx_t;
197201

198-
#define SHMEM_CTX_DEFAULT oshmem_ctx_default;
202+
#define SHMEM_CTX_DEFAULT oshmem_ctx_default
203+
204+
extern shmem_ctx_t oshmem_ctx_default;
199205

200206
OSHMEM_DECLSPEC int shmem_ctx_create(long options, shmem_ctx_t *ctx);
201207
OSHMEM_DECLSPEC void shmem_ctx_destroy(shmem_ctx_t ctx);

oshmem/shmem/c/profile/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ OSHMEM_API_SOURCES = \
3838
pshmem_align.c \
3939
pshmem_query.c \
4040
pshmem_p.c \
41+
pshmem_context.c \
4142
pshmem_put.c \
4243
pshmem_g.c \
4344
pshmem_get.c \

0 commit comments

Comments
 (0)