Skip to content

Commit f7f928d

Browse files
Mamzi Bayatpour  mbayatpour@nvidia.com ()janjust
andcommitted
OSC UCX: Setting the lock type when MPI_MODE_NOCHECK is set
Signed-off-by: Mamzi Bayatpour <mbayatpour@nvidia.com> Co-authored-by: Tomislav Janjusic <tomislavj@nvidia.com>
1 parent 7abb14b commit f7f928d

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)