Skip to content

Commit 3dace9b

Browse files
authored
Merge pull request #13126 from devreal/osc-ucx-fix-no-locks
osc/ucx: ignore lock table if "no_locks" info key is set to true
2 parents 3d4c7d4 + 1ba62ea commit 3dace9b

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)