Skip to content

Resolve padding semantics in global dim data spec #282

Open

Description

@kwmsmith

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.

Activity

  1. added this to the 0.3 milestone on Apr 4, 2014
  2. cowlicks commented on Apr 4, 2014

    @cowlicks
    Contributor

    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.

  3. kwmsmith commented on Apr 4, 2014

    @kwmsmith
    ContributorAuthor

    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.

  4. modified the milestones: 0.4, 0.3 on May 29, 2014
  5. modified the milestones: , 0.4 on Jun 27, 2014
  6. modified the milestones: 0.7, 0.6 on Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions