Skip to content

Conversation

@Lunderberg
Copy link
Contributor

@Lunderberg Lunderberg commented Sep 27, 2022

Adds a regression test for using the layout_rewrite post-proc on a buffer with an extent of one in at least one dimension, issue #12852. This bug was resolved as part of the refactor in #12904, but didn't have a regression test at that point.

CC @vinx13 @junrushao @zxybazh

Adds a regression test for using the `layout_rewrite` post-proc on a
buffer with an extent of one in at least one dimension, issue
apache#12852.  This bug was resolved as
part of the refactor in apache#12904, but
didn't have a regression test at that point.
Copy link
Member

@zxybazh zxybazh left a comment

Choose a reason for hiding this comment

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

LGTM, may I ask what happened with the test case commented out?

@Lunderberg
Copy link
Contributor Author

Ooh, the commented "segfaults" case was during testing, but I didn't return to it. There was a segfault that occurred when attempting to use a layout-postproc on a non-schedulable TIR primfunc. I should either remove it, or identify/remove the cause of the segfaults.

@Lunderberg
Copy link
Contributor Author

The segfault now raises an exception instead, and the test case validates it.

@zxybazh
Copy link
Member

zxybazh commented Sep 28, 2022

@vinx13 Would you like to take a look and merge it if everything looks good?

@vinx13 vinx13 merged commit 17e4644 into apache:main Sep 28, 2022
@Lunderberg Lunderberg deleted the layout_rewrite_regression_test branch September 28, 2022 20:48
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…pache#12916)

* [TIR][MetaSchedule] Add regression test for layout_rewrite extent=1

Adds a regression test for using the `layout_rewrite` post-proc on a
buffer with an extent of one in at least one dimension, issue
apache#12852.  This bug was resolved as
part of the refactor in apache#12904, but
didn't have a regression test at that point.

* Identified segfault and added test case
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