Skip to content

Conversation

@yelite
Copy link
Contributor

@yelite yelite commented Nov 16, 2022

Gradient based scheduler would segfault if no candidates can be returned by the search strategy for some workload. It's expected that the scheduler continues to tune other workloads that have candidates.

cc: @zxybazh @junrushao

@tvm-bot
Copy link
Collaborator

tvm-bot commented Nov 16, 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

@yelite yelite force-pushed the fix-gradient-based-scheduler-on-empty-candidates branch from bea9ff2 to a205f93 Compare November 16, 2022 04:58
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.

Thanks for spotting these corner cases. I happen to notice a similar issue when the search strategy direcly returns None. Can you please also fix that?

Gradient based scheduler would segfault if no candidates can
be returned by the search strategy for some workload.
It's expected to tune other workloads that have candidates.
@yelite yelite force-pushed the fix-gradient-based-scheduler-on-empty-candidates branch from a205f93 to f8a7714 Compare November 16, 2022 16:56
@zxybazh
Copy link
Member

zxybazh commented Nov 16, 2022

LGTM, good to merge once CI passed : )

@junrushao junrushao merged commit eca361d into apache:main Nov 17, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
Fix segfault in gradient based scheduler

Gradient based scheduler would segfault if no candidates can
be returned by the search strategy for some workload.
It's expected to tune other workloads that have candidates.
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.

5 participants