-
Notifications
You must be signed in to change notification settings - Fork 53
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
refactor 2d inner reduction heuristics #3333
Conversation
!build |
!test --diff --diff-bench |
should the target of this one be |
!test --diff --diff-bench |
Yes, |
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, one small question on code change.
// Max vectorization factor | ||
int64_t vect_factor = std::min( | ||
scheduler_utils::lastPow2(max_unroll), (int64_t)max_vectorize_factor); | ||
int64_t after_vect = total_reduction_numel / vect_factor; |
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.
This was a ceilDiv earlier.
Is it an intended change?
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.
Yes, vect_factor
was derived from inner most dim, total_reduction_numel
must be disivible by vect_factor
Following #3331
refactor 2d inner reduction heuristics, prepare for further heuristics tunning.