Skip to content

Commit 1ba62ea

Browse files
committed
osc/ucx: ignore lock table if "no_locks" info key is set
Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
1 parent 42b17ae commit 1ba62ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ompi/mca/osc/ucx/osc_ucx_comm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ int ompi_osc_ucx_get(void *origin_addr, size_t origin_count,
606606
static inline bool ompi_osc_need_acc_lock(ompi_osc_ucx_module_t *module, int target)
607607
{
608608
ompi_osc_ucx_lock_t *lock = NULL;
609+
if (module->no_locks) {
610+
return true; // if we have no locks we always need to acquire the accumulate lock
611+
}
609612
opal_hash_table_get_value_uint32(&module->outstanding_locks,
610613
(uint32_t) target, (void **) &lock);
611614

0 commit comments

Comments
 (0)