Skip to content

Commit eba4e33

Browse files
authored
Merge pull request #10493 from MamziB/mamzi/atomic-acc-nocheck
OSC UCX: Enable software atomicity when lock is set to MPI_MODE_NOCHECK
2 parents b1b2280 + f7f928d commit eba4e33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ompi/mca/osc/ucx/osc_ucx_passive_target.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ int ompi_osc_ucx_lock(int lock_type, int target, int mpi_assert, struct ompi_win
124124
}
125125
} else {
126126
lock->is_nocheck = true;
127+
if (lock_type == MPI_LOCK_EXCLUSIVE) {
128+
lock->type = LOCK_EXCLUSIVE;
129+
} else {
130+
lock->type = LOCK_SHARED;
131+
}
127132
}
128133

129134
if (ret == OMPI_SUCCESS) {

0 commit comments

Comments
 (0)