Skip to content

Restore AcceleratorAllocatorConfig to avoid potential regression#165129

Closed
guangyey wants to merge 2 commits intogh/guangyey/212/basefrom
gh/guangyey/212/head
Closed

Restore AcceleratorAllocatorConfig to avoid potential regression#165129
guangyey wants to merge 2 commits intogh/guangyey/212/basefrom
gh/guangyey/212/head

Conversation

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 10, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 7c5ed43 with merge base ca96c67 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

guangyey added a commit that referenced this pull request Oct 10, 2025
auto env##_name = c10::utils::get_env(#env); \
if (env##_name.has_value()) { \
if (deprecated) { \
TORCH_WARN_ONCE(#env " is deprecated, use PYTORCH_ALLOC_CONF instead"); \
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TORCH_WARN would introduce overhead. I remove it in case it is the root cause of the regression.

roundup_power2_divisions_.begin(),
static_cast<std::vector<size_t>::difference_type>(
last_index + 1)),
static_cast<std::vector<size_t>::difference_type>(last_index)),
Copy link
Collaborator Author

@guangyey guangyey Oct 10, 2025

Choose a reason for hiding this comment

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

Drop this bug fix to keep consistent with CUDAAllocatorConfig.

[ghstack-poisoned]
@albanD
Copy link
Collaborator

albanD commented Oct 13, 2025

@albanD has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@albanD
Copy link
Collaborator

albanD commented Oct 13, 2025

@albanD has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #165281

1 similar comment
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #165281

pytorchmergebot pushed a commit that referenced this pull request Oct 16, 2025
pytorchmergebot pushed a commit that referenced this pull request Oct 16, 2025
pytorchmergebot pushed a commit that referenced this pull request Oct 16, 2025
pytorchmergebot pushed a commit that referenced this pull request Oct 16, 2025
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
…orch#165129)

# Motivation
This PR aims to restore `AcceleratorAllocatorConfig` to avoid the potential regression mentioned in pytorch#160666 (comment)
These code change would be reverted in the following PR pytorch#165304
Pull Request resolved: pytorch#165129
Approved by: https://github.com/albanD
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
…orch#165129)

# Motivation
This PR aims to restore `AcceleratorAllocatorConfig` to avoid the potential regression mentioned in pytorch#160666 (comment)
These code change would be reverted in the following PR pytorch#165304
Pull Request resolved: pytorch#165129
Approved by: https://github.com/albanD
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
@github-actions github-actions bot deleted the gh/guangyey/212/head branch November 16, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants