Skip to content

Deprecate overleap functions in CUDAAllocatorConfig, use AcceleratorAllocatorConfig instead#156165

Closed
guangyey wants to merge 75 commits intogh/guangyey/158/basefrom
gh/guangyey/158/head
Closed

Deprecate overleap functions in CUDAAllocatorConfig, use AcceleratorAllocatorConfig instead#156165
guangyey wants to merge 75 commits intogh/guangyey/158/basefrom
gh/guangyey/158/head

Conversation

@guangyey guangyey requested review from eqy and syed-ahmed as code owners June 17, 2025 07:10
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 17, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ You can merge normally! (2 Unrelated Failures)

As of commit c0f06ff with merge base bb67660 (image):

UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:

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

using namespace c10::CachingDeviceAllocator;

// Included here as this is externally used in CUDAAllocatorConfig
const size_t kLargeBuffer =
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

already move to AllocatorConfig.h

@guangyey guangyey added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 17, 2025
guangyey added 9 commits June 17, 2025 14:41
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added 5 commits July 16, 2025 15:13
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156175

pytorchmergebot pushed a commit that referenced this pull request Jul 30, 2025
# Motivation
This PR moves the implementation of `torch.cuda.memory._set_allocator_settings` to `torch._C._accelerator_setAllocatorSettings`.
Since the original API was intended as a temporary/internal utility, I am not exposing the new function as a public API.

Pull Request resolved: #156175
Approved by: https://github.com/albanD
ghstack dependencies: #149601, #157908, #150312, #156165
[ghstack-poisoned]
pytorchmergebot added a commit that referenced this pull request Aug 1, 2025
…leratorAllocatorConfig instead (#156165)"

This reverts commit 1fc010a.

Reverted #156165 on behalf of https://github.com/guangyey due to Static initialization order issue impact the downstream repo ([comment](#150312 (comment)))
@pytorchmergebot
Copy link
Collaborator

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

yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
…llocatorConfig instead (#156165)

Pull Request resolved: #156165
Approved by: https://github.com/albanD
ghstack dependencies: #149601, #157908, #150312
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
# Motivation
This PR moves the implementation of `torch.cuda.memory._set_allocator_settings` to `torch._C._accelerator_setAllocatorSettings`.
Since the original API was intended as a temporary/internal utility, I am not exposing the new function as a public API.

Pull Request resolved: #156175
Approved by: https://github.com/albanD
ghstack dependencies: #149601, #157908, #150312, #156165
yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
…leratorAllocatorConfig instead (#156165)"

This reverts commit 1fc010a.

Reverted #156165 on behalf of https://github.com/guangyey due to Static initialization order issue impact the downstream repo ([comment](#150312 (comment)))
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156175

3 similar comments
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156175

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156175

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156175

pytorchmergebot pushed a commit that referenced this pull request Aug 5, 2025
# Motivation
This PR moves the implementation of `torch.cuda.memory._set_allocator_settings` to `torch._C._accelerator_setAllocatorSettings`.
Since the original API was intended as a temporary/internal utility, I am not exposing the new function as a public API.

Pull Request resolved: #156175
Approved by: https://github.com/albanD
ghstack dependencies: #159629, #150312, #156165
joshuuuasu added a commit to joshuuuasu/pytorch that referenced this pull request Aug 19, 2025
…celeratorAllocatorConfig instead (pytorch#156165)"

Summary: reverting this diff since it caused S551328. Please see D80217492 for dertails.

Test Plan:
NA

Rollback Plan:

Differential Revision: D80553314
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/rocm Trigger "default" config CI on ROCm ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue open source release notes: distributed (c10d) release notes category Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants