【Allocator】Add compact func#76223
Merged
liuruyan merged 11 commits intoPaddlePaddle:developfrom Nov 14, 2025
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #76223 +/- ##
==========================================
Coverage ? 91.66%
==========================================
Files ? 7
Lines ? 24
Branches ? 0
==========================================
Hits ? 22
Misses ? 2
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fe9bf9c to
0079c0e
Compare
zyfncg
approved these changes
Nov 14, 2025
| } | ||
|
|
||
| uint64_t Release(const phi::Place& place) { return ReleaseImpl(place); } | ||
| size_t Compact(const phi::Place& place) { return CompactImpl(place); } |
Contributor
Author
There was a problem hiding this comment.
好的,我下面也在这个基类上加上注释说明(已有注释在更外层的接口上)
LittleHeroZZZX
pushed a commit
to LittleHeroZZZX/Paddle
that referenced
this pull request
Nov 19, 2025
* add compact func * fix ut * fix ci * add ut * fix ci * fix ci * fix ci * fix ci * fix ci * fix ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Performance Optimization
PR Types
New features
Description
Allocator增加Compact接口,用来执行碎片整理
Pcard-67164