Skip to content

Commit ac3455b

Browse files
authored
Merge pull request #13135 from devreal/osc-ucx-fix-no-locks-v5.0.x
osc/ucx: ignore lock table if "no_locks" info key is set
2 parents c1d3071 + aeba5ce commit ac3455b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ompi/mca/osc/ucx/osc_ucx_comm.c

+3
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ int ompi_osc_ucx_get(void *origin_addr, int origin_count,
598598
static inline bool ompi_osc_need_acc_lock(ompi_osc_ucx_module_t *module, int target)
599599
{
600600
ompi_osc_ucx_lock_t *lock = NULL;
601+
if (module->no_locks) {
602+
return true; // if we have no locks we always need to acquire the accumulate lock
603+
}
601604
opal_hash_table_get_value_uint32(&module->outstanding_locks,
602605
(uint32_t) target, (void **) &lock);
603606

0 commit comments

Comments
 (0)