Skip to content

Commit e9647e6

Browse files
committed
atomic/mxm: rename symbol that is a duplicate of one in atomic/ucx
This fixes an error when building with --enable-static. Signed-off-by: Nathan Hjelm <[email protected]> (cherry picked from open-mpi/ompi@dbfab94) Signed-off-by: Nathan Hjelm <[email protected]>
1 parent c2a1a25 commit e9647e6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

oshmem/mca/atomic/mxm/atomic_mxm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ OSHMEM_MODULE_DECLSPEC extern mca_atomic_base_component_1_0_0_t
2929
mca_atomic_mxm_component;
3030

3131
/* this component works with spml:ikrit only */
32-
extern mca_spml_ikrit_t *mca_spml_self;
32+
extern mca_spml_ikrit_t *mca_atomic_mxm_spml_self;
3333

3434
OSHMEM_DECLSPEC void atomic_mxm_lock(int pe);
3535
OSHMEM_DECLSPEC void atomic_mxm_unlock(int pe);

oshmem/mca/atomic/mxm/atomic_mxm_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const char *mca_atomic_mxm_component_version_string =
3030
/*
3131
* Global variable
3232
*/
33-
mca_spml_ikrit_t *mca_spml_self = NULL;
33+
mca_spml_ikrit_t *mca_atomic_mxm_spml_self = NULL;
3434

3535
/*
3636
* Local function
@@ -96,7 +96,7 @@ static int _mxm_open(void)
9696
"Can not use atomic/mxm because spml ikrit component disabled");
9797
return OSHMEM_ERR_NOT_AVAILABLE;
9898
}
99-
mca_spml_self = (mca_spml_ikrit_t *)mca_spml.self;
99+
mca_atomic_mxm_spml_self = (mca_spml_ikrit_t *) mca_spml.self;
100100

101101
return OSHMEM_SUCCESS;
102102
}

oshmem/mca/atomic/mxm/atomic_mxm_cswap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ int mca_atomic_mxm_cswap(void *target,
8686

8787
/* mxm request init */
8888
sreq.base.state = MXM_REQ_NEW;
89-
sreq.base.mq = mca_spml_self->mxm_mq;
90-
sreq.base.conn = mca_spml_self->mxm_peers[pe]->mxm_hw_rdma_conn;
89+
sreq.base.mq = mca_atomic_mxm_spml_self->mxm_mq;
90+
sreq.base.conn = mca_atomic_mxm_spml_self->mxm_peers[pe]->mxm_hw_rdma_conn;
9191
sreq.base.completed_cb = NULL;
9292
sreq.base.data_type = MXM_REQ_DATA_BUFFER;
9393

oshmem/mca/atomic/mxm/atomic_mxm_fadd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ int mca_atomic_mxm_fadd(void *target,
8888

8989
/* mxm request init */
9090
sreq.base.state = MXM_REQ_NEW;
91-
sreq.base.mq = mca_spml_self->mxm_mq;
92-
sreq.base.conn = mca_spml_self->mxm_peers[pe]->mxm_hw_rdma_conn;
91+
sreq.base.mq = mca_atomic_mxm_spml_self->mxm_mq;
92+
sreq.base.conn = mca_atomic_mxm_spml_self->mxm_peers[pe]->mxm_hw_rdma_conn;
9393
sreq.base.completed_cb = NULL;
9494
sreq.base.data_type = MXM_REQ_DATA_BUFFER;
9595

0 commit comments

Comments
 (0)