Skip to content

Conversation

@vinx13
Copy link
Member

@vinx13 vinx13 commented Oct 31, 2022

Fixed #13204.

cc @junrushao

@tvm-bot
Copy link
Collaborator

tvm-bot commented Oct 31, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@github-actions github-actions bot requested a review from junrushao October 31, 2022 18:36
Copy link

@shingjan shingjan left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

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

LGTM!

@junrushao
Copy link
Member

BTW, i was curious why it's not caught by the unittests of search space generation?

@vinx13
Copy link
Member Author

vinx13 commented Oct 31, 2022

the unit test doesn't use default config here

@junrushao
Copy link
Member

we might want to add a unittest to cover the rule, but i understand it's kind of urgent. please set a reminder to add a regression test :-)

@masahi
Copy link
Member

masahi commented Oct 31, 2022

@tvm-bot rerun

Comment on lines +559 to +563
if (tile_binds.defined()) {
for (const String& tile_bind : tile_binds.value()) {
CHECK_NE(tile_bind, "threadIdx.x") << "Cannot bind to threadIdx.x when using tensor core.";
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this check (along with existing tests) now cover the regression this fixes? If not adding a test to protect against the regression in the future will surely save you and others time!

Copy link
Contributor

@csullivan csullivan Oct 31, 2022

Choose a reason for hiding this comment

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

Oops looks like @junrushao already asked my question, I trust your judgements :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes this check covered the broken case that incorrectly using threadIdx.x. As a follow up, I'm thinking also adding some e2e search space generation test for the default config for each target.

@vinx13 vinx13 force-pushed the fix/ms-tensorcore branch from 6c07b5f to 4d12929 Compare October 31, 2022 23:38
@masahi masahi merged commit 0683ece into apache:main Nov 1, 2022
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.

[Bug] MetaSchedule produce incorrect result when TensorCore is used

7 participants