Skip to content

Commit ed486e3

Browse files
committed
pml/ob1: use opal_atomic
so that the code can compile when configured with --disable-c11-atomics Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent b122090 commit ed486e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/pml/ob1/pml_ob1_comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ mca_pml_ob1_comm_proc_t *mca_pml_ob1_peer_create (ompi_communicator_t *comm, mca
133133
/* make sure proc structure is filled in before adding it to the array */
134134
opal_atomic_wmb ();
135135

136-
if (!OPAL_ATOMIC_COMPARE_EXCHANGE_STRONG_PTR((atomic_intptr_t *) pml_comm->procs + rank, &old_proc,
136+
if (!OPAL_ATOMIC_COMPARE_EXCHANGE_STRONG_PTR((opal_atomic_intptr_t *) pml_comm->procs + rank, &old_proc,
137137
(uintptr_t) proc)) {
138138
/* proc was created by a competing thread. go ahead and throw this one away. */
139139
OBJ_RELEASE(proc);

0 commit comments

Comments
 (0)