Skip to content

Conversation

@liuruyan
Copy link
Contributor

@liuruyan liuruyan commented Nov 4, 2025

PR Category

Performance Optimization

PR Types

New features

Description

Allocator增加Compact接口,用来执行碎片整理
Pcard-67164

@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@fa5e056). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...addle/phi/core/memory/allocation/retry_allocator.h 0.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@liuruyan liuruyan changed the title add compact func 【Allocator】Add compact func Nov 14, 2025
}

uint64_t Release(const phi::Place& place) { return ReleaseImpl(place); }
size_t Compact(const phi::Place& place) { return CompactImpl(place); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议加些注释说明

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,我下面也在这个基类上加上注释说明(已有注释在更外层的接口上)

@liuruyan liuruyan merged commit 42b8146 into PaddlePaddle:develop Nov 14, 2025
97 of 101 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants