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

[TIR, analysis] Add GetAutoTensorizeMappingInfo to generate transforms for auto tensorization #11740

Merged
merged 6 commits into from
Jun 19, 2022

Conversation

vinx13
Copy link
Member

@vinx13 vinx13 commented Jun 15, 2022

This PR added a utility function GetAutoTensorizeMappingInfo to propose mapping from workload block iters to the iters in the tensor intrin. An example usage is conv2d, where the computation block has more iters than the matmul tensor intrin.

cc @spectrometerHBH @masahi @junrushao1994

@vinx13 vinx13 force-pushed the feat/auto-tensorize-mapping-proposer branch 2 times, most recently from dc57daf to 73d983c Compare June 15, 2022 22:33
src/tir/schedule/ir_comparator.h Outdated Show resolved Hide resolved
src/tir/schedule/ir_comparator.cc Outdated Show resolved Hide resolved
src/tir/schedule/ir_comparator.cc Show resolved Hide resolved
src/tir/schedule/analysis.h Show resolved Hide resolved
@vinx13 vinx13 force-pushed the feat/auto-tensorize-mapping-proposer branch from 1df4393 to da0d9a9 Compare June 16, 2022 22:17
src/tir/schedule/analysis/analysis.cc Show resolved Hide resolved
src/tir/schedule/analysis.h Show resolved Hide resolved
@vinx13 vinx13 force-pushed the feat/auto-tensorize-mapping-proposer branch from 26703b8 to c7b27e6 Compare June 17, 2022 21:33
@vinx13 vinx13 force-pushed the feat/auto-tensorize-mapping-proposer branch from c7b27e6 to b1ab4fe Compare June 17, 2022 23:47
@junrushao junrushao merged commit 9bba758 into apache:main Jun 19, 2022
blackkker pushed a commit to blackkker/tvm that referenced this pull request Jul 7, 2022
…s for auto tensorization (apache#11740)

This PR added a utility function `GetAutoTensorizeMappingInfo` to propose mapping from workload block iters to the iters in the tensor intrin. An example usage is conv2d, where the computation block has more iters than the matmul tensor intrin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants