Skip to content

Conversation

@guangyey
Copy link
Collaborator

@guangyey guangyey commented May 6, 2025

Stack from ghstack (oldest at bottom):

Motivation

The following API will be put under torch.accelerator

  • empty_cache
  • max_memory_allocated
  • max_memory_reserved
  • memory_allocated
  • memory_reserved
  • memory_stats
  • reset_accumulated_memory_stats
  • reset_peak_memory_stats

cc @albanD @EikanWang

@pytorch-bot
Copy link

pytorch-bot bot commented May 6, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 3 Unrelated Failures

As of commit 63f2a36 with merge base 178515d (image):

NEW FAILURE - The following job has failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

@guangyey guangyey changed the title Add unified memory APIs for torch.accelerator [WIP] Add unified memory APIs for torch.accelerator May 6, 2025
guangyey added 2 commits May 6, 2025 15:10
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added 15 commits May 22, 2025 15:08
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added 2 commits June 5, 2025 10:47
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #155200

[ghstack-poisoned]
@guangyey
Copy link
Collaborator Author

guangyey commented Aug 6, 2025

@pytorchbot merge -i

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #155200

@pytorchmergebot
Copy link
Collaborator

@guangyey your PR has been reverted as part of the stack under #138222.

@guangyey guangyey added the ciflow/periodic-rocm-mi300 Trigger "distributed" config CI on ROCm MI300 label Aug 8, 2025
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #155200

hinriksnaer pushed a commit to hinriksnaer/pytorch that referenced this pull request Aug 8, 2025
# Motivation
The following API will be put under torch.accelerator
- empty_cache
- max_memory_allocated
- max_memory_reserved
- memory_allocated
- memory_reserved
- memory_stats
- reset_accumulated_memory_stats
- reset_peak_memory_stats

Pull Request resolved: pytorch#152932
Approved by: https://github.com/albanD
ghstack dependencies: pytorch#138222
@github-actions github-actions bot deleted the gh/guangyey/145/head branch September 8, 2025 02:15
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
# Motivation
The following API will be put under torch.accelerator
- empty_cache
- max_memory_allocated
- max_memory_reserved
- memory_allocated
- memory_reserved
- memory_stats
- reset_accumulated_memory_stats
- reset_peak_memory_stats

Pull Request resolved: pytorch#152932
Approved by: https://github.com/albanD
ghstack dependencies: pytorch#138222
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
# Motivation
The following API will be put under torch.accelerator
- empty_cache
- max_memory_allocated
- max_memory_reserved
- memory_allocated
- memory_reserved
- memory_stats
- reset_accumulated_memory_stats
- reset_peak_memory_stats

Pull Request resolved: pytorch#152932
Approved by: https://github.com/albanD
ghstack dependencies: pytorch#138222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/mps Run MPS tests (subset of trunk) ciflow/periodic-rocm-mi300 Trigger "distributed" config CI on ROCm MI300 ciflow/rocm Trigger "default" config CI on ROCm ciflow/trunk Trigger trunk jobs on your pull request ciflow/xpu Run XPU CI tasks Merged module: accelerator Issues related to the shared accelerator API open source release notes: python_frontend python frontend release notes category Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants