You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Distribution.from_shape is producing localarrays with size 0 #442
From some experimenting if we call the processor grid size for an axis p and the distarray size in an axis d then the following must be satisfied
p < d
d = p*n + p - n - 1
Where n = p // d so d - p < pn < d.
From experimenting, it looks like for a given p there are p - 2 cases where the above relations are satisfied and we would end up with an empty localarray.
It seems like the best solution would be to check if the above conditions are satified in make_grid_shape, if not reduce p by 1 and try again.
Activity
cowlicks commentedon Jun 16, 2014
From some experimenting if we call the processor grid size for an axis
pand the distarray size in an axisdthen the following must be satisfiedWhere
n = p // dsod - p < pn < d.From experimenting, it looks like for a given
pthere arep - 2cases where the above relations are satisfied and we would end up with an empty localarray.It seems like the best solution would be to check if the above conditions are satified in
make_grid_shape, if not reducepby1and try again.kwmsmith commentedon Jul 7, 2014
Should be partially addressed by PR #502.