-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[MPS] Improve memory usage and performance utilizing garbage collector and adaptive commit #86119
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
Conversation
…adaptive commit (#113) * Improve memory usage and performance utilizing garbage collector and adaptive commit - Enable low watermark limit to detect memory pressure. - Enable garbage collection and adaptive commit strategies when under memory pressure. - More efficient resource management by splitting large heaps (instead of reusing oversized buffers for smaller allocation requests) - Introduce Extra Large heaps to improve performance by avoiding numerous costly allocation of smaller heaps - Fix purgeability when releasing the Metal heaps * Fix the race condition when deferring the heap's size update
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/86119
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 FailuresAs of commit 1fa797c: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Looks fine.
@pytorchbot merge -f "MPS tests are green" |
@pytorchbot successfully started a merge job. Check the current status here. |
Hey @razarmehr. |
@razarmehr Do you think we could still call the memory callbacks registered here: pytorch/aten/src/ATen/mps/MPSAllocator.mm Line 12 in fc94a21
Looks like their usage have been removed in this PR. |
Fixes #79283