-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add dummy segment to the left #185
Conversation
Could you elaborate on this? As the |
For dummy segments, we need to set the max number of CPU cycles to exactly the number of cycles in |
My point was that dummy segment generation is handled by the system, not the user, who only cares about actual segments lengths. So this notion should be handled arbitrarily of what the user sets as max cpu length (which should be a power of two). |
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.
overall 90% of the PR changes are just max_cpu_len_log
-> max_cpu_len
and corresponding changes, which I believe should not even happen in the first place out of safety. We should probably just handle the dummy segment specifically so that we can maintain the existing logic.
I reverted those changes and instead added an |
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!
This PR adds dummy segments to the left in
generate_all_data_segments
when necessary. Note that for this, we need to allow values that are not powers of two formax_cpu_len
.