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
Resolve padding semantics in global dim data spec #282
Padding support is currently spotty, so there are several places where it needs to be worked on. One area is in the global dim data spec and making it consistent with the protocol's description of padding. For instance, if communication padding is 2, then the global index bounds for a 1D distarray would be something like:
Process
0
1
Padding
(0, 2)
(2, 0)
(start, stop)
(0, 13)
(9, 20)
Note especially that the stop of process 0 is greater than the start of process 1.
Topic for discussion: how should this be specified in the global dim data? We'd like it to be straightforward, allow full control over how things are specified, and (ideally) minimal, so no data is duplicated.
I think 99% of the time people will want the same sized padding everywhere. So specifying padding_width = 2 would be enough I think, along with having the start/stop be the start and stop before padding.
It can be rather confusing to get the (start, stop) right with padding in place. If the "owned" boundary between the two processes is at index 10 / 11, then the stop of process 0 should be 13 -- 2 for the padding, and 1 since the upper bound is non-inclusive in Python. The lower bound on process 1 should be 9, to account for padding there.
Activity
cowlicks commentedon Apr 4, 2014
I think 99% of the time people will want the same sized padding everywhere. So specifying
padding_width = 2would be enough I think, along with having the start/stop be the start and stop before padding.kwmsmith commentedon Apr 4, 2014
It can be rather confusing to get the (start, stop) right with padding in place. If the "owned" boundary between the two processes is at index 10 / 11, then the stop of process 0 should be 13 -- 2 for the padding, and 1 since the upper bound is non-inclusive in Python. The lower bound on process 1 should be 9, to account for padding there.