Skip to content

Conversation

guangyey
Copy link
Collaborator

@guangyey guangyey commented Jul 25, 2025

Stack from ghstack (oldest at bottom):

Motivation

While refactoring the caching allocator, I noticed that the AllocParams constructor on CUDA had an unused parameter. This change removes that unused argument to avoid potential confusion.

Additional Context

I noticed that AllocParams is defined in cpp file, so it should be safe to make this change.

@guangyey guangyey requested review from eqy and syed-ahmed as code owners July 25, 2025 15:12
Copy link

pytorch-bot bot commented Jul 25, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 125f772 with merge base 51eb41a (image):

NEW FAILURE - The following job has failed:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

guangyey added a commit that referenced this pull request Jul 25, 2025
ghstack-source-id: 1957661
Pull Request resolved: #159159
@guangyey guangyey added the topic: not user facing topic category label Jul 25, 2025
@guangyey guangyey requested a review from albanD July 25, 2025 15:19
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Jul 26, 2025
ghstack-source-id: 8f1cd95
Pull Request resolved: #159159
@guangyey guangyey added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 26, 2025
[ghstack-poisoned]
@guangyey
Copy link
Collaborator Author

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/guangyey/173/orig onto refs/remotes/origin/viable/strict, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/159159)

pytorchmergebot pushed a commit that referenced this pull request Jul 28, 2025
ghstack-source-id: 8937e44
Pull Request resolved: #159159
BlockPool* pool,
size_t alloc_size,
DeviceStats& stats)
size_t alloc_size)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this part of our public API? How did you check there are no usage if it in the wild?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is defined in cpp file and not exposed to be public.

Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Ok!

@guangyey
Copy link
Collaborator Author

@pytorchbot merge -i

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 2 checks: pull / linux-jammy-py3_9-clang9-xla / test (xla, 1, 1, linux.12xlarge, unstable), trunk / linux-jammy-rocm-py3.10 / test (distributed, 1, 1, linux.rocm.gpu.4)

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

yangw-dev pushed a commit that referenced this pull request Aug 1, 2025
# Motivation
While refactoring the caching allocator, I noticed that the `AllocParams` constructor on CUDA had an unused parameter. This change removes that unused argument to avoid potential confusion.

# Additional Context
I noticed that `AllocParams` is defined in cpp file, so it should be safe to make this change.
Pull Request resolved: #159159
Approved by: https://github.com/cyyever, https://github.com/albanD
pytorchmergebot pushed a commit that referenced this pull request Aug 1, 2025
# Motivation
While refactoring the caching allocator, I noticed that the `ExpandableSegment` constructor on CUDA had an unused parameter. This change removes that unused argument to avoid potential confusion.

# Additional Context
I noticed that `ExpandableSegment` is defined in cpp file, so it should be safe to make this change.

Pull Request resolved: #159356
Approved by: https://github.com/ngimel, https://github.com/albanD
ghstack dependencies: #159159
@github-actions github-actions bot deleted the gh/guangyey/173/head branch August 29, 2025 02:11
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.

5 participants