-
Notifications
You must be signed in to change notification settings - Fork 54
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
removing unused NoOpHeuristic #3670
Conversation
jjsjann123
commented
Jan 3, 2025
•
edited
Loading
edited
- Removing unused NoOpHeuristic;
- Moving computation of scheduler/launch params into the block when it's needed.
!test |
const auto& compile_log = executor_cache->getMostRecentExecutorInfo(); | ||
auto params = toString(compile_log.params); | ||
auto lparams = toString( | ||
compile_log.fusion_executor->as<KernelExecutor>()->lastLaunchParams()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only compute these when needed.
i.e. if segmentation happens with NoOp segment, the toString
method above would fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by if segmentation happens with NoOp segment
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If segmentation happened and gives no-op segments, since toString
here isn't expecting no-op scheduler, we run into asserts.
Fuser/benchmarks/cpp/utils.cpp
Lines 131 to 132 in e286c6f
NVF_THROW( | |
"Unknown heuristic parameter type. Did you just added a new heuristic parameter type but forget to update here?"); |
I'm not sure why |
We don't have to. I'll remove |
!test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
failing test coming from |