Skip to content

Conversation

@guangyey
Copy link
Collaborator

@guangyey guangyey commented Sep 23, 2024

Motivation

fix #135726 After merging two free blocks, I made a stupid mistake of ignoring the correct size to decrease the active memory size, which should be the original block size instead of the merged block size.

Additional Context

Add a UT to guard this scenario.

Pull Request resolved: #135818
Approved by: https://github.com/EikanWang

(cherry picked from commit e6b6835)

Fixes #ISSUE_NUMBER

cc @gujinghui @EikanWang @fengyuan14

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 23, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/136420

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 8df7bb3 with merge base b7eb725 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@guangyey guangyey added ciflow/xpu Run XPU CI tasks module: xpu Intel XPU related issues labels Sep 23, 2024
# Motivation
fix #135726
After merging two free blocks, I made a stupid mistake of ignoring the correct size to decrease the active memory size, which should be the original block size instead of the merged block size.

# Additional Context
Add a UT to guard this scenario.

Pull Request resolved: #135818
Approved by: https://github.com/EikanWang

(cherry picked from commit e6b6835)
Copy link
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

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

lgtm

@atalman atalman merged commit c5e5254 into release/2.5 Sep 24, 2024
@atalman atalman deleted the guangyey/fix_memory_api branch September 24, 2024 17:58
@guangyey
Copy link
Collaborator Author

Thanks very much~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/xpu Run XPU CI tasks module: xpu Intel XPU related issues open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants