Fix corner cases where hpz secondary partition has zero element. This ensure that sec_numel is at least zero. For this scenario, copying is really not necessary except that all ranks need to synchronize at the end of secondary partition. This is a good solution until 2nd tensor all-gather vs 2nd tensor partition issue is properly fixed.
Fix corner cases where hpz secondary partition has zero element. This ensure that
sec_numel
is at least zero. For this scenario, copying is really not necessary except that all ranks need to synchronize at the end of secondary partition. This is a good solution until 2nd tensor all-gather vs 2nd tensor partition issue is properly fixed.Fixes: #5642