Skip to content

allocation domain propagation to support reshape operations #2235

@jjsjann123

Description

@jjsjann123

allocation domain propagation should support reshape operations. @zasdfgbnm brought it up here: #2168 (comment)

Currently the propagation only maps exact iterdomains from sources to destinations. Handling reshape requires us to walk through the ValGraph and establish rules to map through split/merge/resize. Which might not be too bad to resolve if we are looking at the relationship between pair of source to destination. As @wujingyue suggested in the thread. @zasdfgbnm and @jacobhinkle were suggesting to establish a uniformed relationship table per fusion by traversing the IR. Which could used later by schedulers/segmenters to coherently establish allocation domain for boundary tensors.

I think the uniformed allocation domain sounds interesting but it's going to be hard(?!) to justify the approach at current stage. (how useful would it really be at solving problems at hand?)
Meanwhile the source to destination mapping seems like a low hanging fruit that I think can be relatively easy/quick to pull of. I'm not ruling out the alternative yet. Opening the issue here to track the progress as well as bookkeeping the alternative that we are not picking up at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    allocation domainissues related to allocation domain supporton holdThis issue should be revisited in the future

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions