Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TensorIR][M1a] Introduce Block and BlockRealize #7553

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

Hzfengsy
Copy link
Member

@Hzfengsy Hzfengsy commented Mar 1, 2021

I'm happy to start upstream TensorIR from this PR.
TensorIR is a new low-level IR with full scheduling support. Each schedule primitive is a transformation from IR to IR. To get more detailed information please refer to the previous RFC: https://discuss.tvm.apache.org/t/rfc-tensorir-a-schedulable-ir-for-tvm/7872.

Since this project is large, we'd like to upstreaming with several PRs, full progress tracking should be here #7527:

  • Introduce core data structure (this PR)
  • Add tvmscript support for TensorIR data structure
  • Introduce basic schedule state
  • Add schedule primitives one by one

co-authors: @spectrometerHBH @junrushao1994 @tqchen @jinhongyii @MasterJH5574 and @vinx13

Co-authored-by: Bohan Hou <[email protected]>
Co-authored-by: Junru Shao <[email protected]>
Co-authored-by: Tianqi Chen <[email protected]>
Co-authored-by: Ruihang Lai <[email protected]>
Co-authored-by: Hongyi Jin <[email protected]>
Co-authored-by: Wuwei Lin <[email protected]>
Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in terms of the new added nodes. It might be clearer when new schedule primitives are sent.

@comaniac comaniac merged commit 057a673 into apache:main Mar 1, 2021
@comaniac
Copy link
Contributor

comaniac commented Mar 1, 2021

Thanks @Hzfengsy @MasterJH5574 @jinhongyii @tkonolige @junrushao1994 @vinx13 @tqchen

Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
Co-authored-by: Bohan Hou <[email protected]>
Co-authored-by: Junru Shao <[email protected]>
Co-authored-by: Tianqi Chen <[email protected]>
Co-authored-by: Ruihang Lai <[email protected]>
Co-authored-by: Hongyi Jin <[email protected]>
Co-authored-by: Wuwei Lin <[email protected]>

Co-authored-by: Bohan Hou <[email protected]>
Co-authored-by: Junru Shao <[email protected]>
Co-authored-by: Tianqi Chen <[email protected]>
Co-authored-by: Ruihang Lai <[email protected]>
Co-authored-by: Hongyi Jin <[email protected]>
Co-authored-by: Wuwei Lin <[email protected]>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
Co-authored-by: Bohan Hou <[email protected]>
Co-authored-by: Junru Shao <[email protected]>
Co-authored-by: Tianqi Chen <[email protected]>
Co-authored-by: Ruihang Lai <[email protected]>
Co-authored-by: Hongyi Jin <[email protected]>
Co-authored-by: Wuwei Lin <[email protected]>

Co-authored-by: Bohan Hou <[email protected]>
Co-authored-by: Junru Shao <[email protected]>
Co-authored-by: Tianqi Chen <[email protected]>
Co-authored-by: Ruihang Lai <[email protected]>
Co-authored-by: Hongyi Jin <[email protected]>
Co-authored-by: Wuwei Lin <[email protected]>
@junrushao
Copy link
Member

@jroesch and I thought a bit about the class name MatchBufferRegion, which (as we all know) is a bit confusing. We might want to think about potential alternatives, like:

  • AliasBufferAtRegion
  • BufferRegionAlias
  • AliasAt
  • etc

Perhaps we should keep the PR open for like one more day after we approve the PR for more discussion?

@tqchen
Copy link
Member

tqchen commented Mar 3, 2021

Happy to discuss naming a bit further, however. This particular case, this is indeed a match instead of a simple alias, and we do not plan to introduce the concept of alias/view into the IR

@junrushao junrushao linked an issue Mar 9, 2021 that may be closed by this pull request
29 tasks
@junrushao junrushao changed the title [TensorIR] introduce Block and BlockRealize [TensorIR][M1a] Introduce Block and BlockRealize Apr 16, 2021
@Hzfengsy Hzfengsy deleted the tensorir branch February 2, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC][Tracking Issue] TensorIR Scheduling
8 participants