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
Support Join auto spill #7942
Support Join auto spill #7942
Conversation
9d4feeb
to
a4fa4ec
Compare
7c33621
to
0850a41
Compare
0850a41
to
1191092
Compare
fd2e201
to
4209e32
Compare
RUNTIME_CHECK_MSG(operator_spill_threshold == 0, "The operator spill threshold should be 0 in auto spill mode"); | ||
auto total_revocable_memory = getTotalRevocableMemory(); | ||
if (total_revocable_memory >= MIN_SPILL_THRESHOLD) | ||
for (size_t i = 0; i < per_thread_revocable_memories.size() && expected_released_memories > 0; i++) |
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.
++i, :)
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.
Done
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
/LGTM |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SeaRise, yibin87 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/run-unit-test |
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
a22c485
to
1cc856f
Compare
/run-all-tests |
@windtalker: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: ref #7738
Problem Summary:
What is changed and how it works?
OperatorSpillContext
, before this pr,OperatorSpillContext::isSpillEnabled()
will returntrue
for the operator that support auto spill, even if auto spill itself is not enabled, after this pr,OperatorSpillContext::isSpillEnabled()
will returntrue
only if auto spill is enabled, and current operator support auto spill or auto spill is disabled, but current operator hasoperator_spill_threshold > 0
Check List
Tests
Side effects
Documentation
Release note