Skip to content

[Bugfix][Thrust] Mark relax.cumsum implementation as scheduled#16688

Closed
Lunderberg wants to merge 1 commit intoapache:mainfrom
Lunderberg:bugfix_thrust_cumsum
Closed

[Bugfix][Thrust] Mark relax.cumsum implementation as scheduled#16688
Lunderberg wants to merge 1 commit intoapache:mainfrom
Lunderberg:bugfix_thrust_cumsum

Conversation

@Lunderberg
Copy link
Copy Markdown
Contributor

@Lunderberg Lunderberg commented Mar 6, 2024

Prior to this commit, the tests/python/relax/test_frontend_nn_op.py::test_renormalize_top_p_top_k_prob test is failing on the main branch. This is due to use of tir.transform.DefaultGPUSchedule on a kernel that cannot be scheduled.

This commit updates relax.backend.DispatchSortScan() to mark its output cumsum function as scheduled.

Prior to this commit, the
`tests/python/relax/test_frontend_nn_op.py::test_renormalize_top_p_top_k_prob`
test is failing on the main branch.  This is due to use of
`tir.transform.DefaultGPUSchedule` on a kernel that cannot be
scheduled.

This commit updates `relax.backend.DispatchSortScan()` to mark
its output `cumsum` function as scheduled.
@yongwww
Copy link
Copy Markdown
Member

yongwww commented Mar 6, 2024

Thanks for the patch. The test should be fixed in #16676.

@Lunderberg Lunderberg closed this Mar 7, 2024
@Lunderberg
Copy link
Copy Markdown
Contributor Author

Sounds good, and thank you!

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.

2 participants