Skip to content

Move config/util to AllocatorConfig for cross-allocator sharing #159553

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

Open
wants to merge 9 commits into
base: gh/guangyey/176/base
Choose a base branch
from

Conversation

guangyey
Copy link
Collaborator

@guangyey guangyey commented Jul 31, 2025

Copy link

pytorch-bot bot commented Jul 31, 2025

🔗 Helpful Links

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

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

❌ 1 Cancelled Job, 2 Unrelated Failures

As of commit d665023 with merge base 2507ae6 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

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

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

  • pull / linux-jammy-py3_9-clang9-xla / test (xla, 1, 1, linux.12xlarge, unstable) (gh) (#158876)
    /var/lib/jenkins/workspace/xla/torch_xla/csrc/runtime/BUILD:476:14: Compiling torch_xla/csrc/runtime/xla_util_test.cpp failed: (Exit 1): gcc failed: error executing CppCompile command (from target //torch_xla/csrc/runtime:xla_util_test) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 229 arguments skipped)

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

guangyey added a commit that referenced this pull request Jul 31, 2025
@guangyey guangyey added ciflow/xpu Run XPU CI tasks topic: not user facing topic category labels Jul 31, 2025
constexpr size_t kMinLargeAlloc =
10485760; // allocations between 1 and 10 MiB may use kLargeBuffer
constexpr size_t kRoundLarge = 2097152; // round up large allocations to 2 MiB

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All configs/utils are defined in cpp file, so no BC issue.

@guangyey guangyey added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 31, 2025
@guangyey guangyey requested a review from albanD July 31, 2025 08:18
guangyey added a commit that referenced this pull request Jul 31, 2025
guangyey added a commit that referenced this pull request Jul 31, 2025
guangyey added a commit that referenced this pull request Jul 31, 2025
guangyey added a commit that referenced this pull request Jul 31, 2025
guangyey added a commit that referenced this pull request Jul 31, 2025
[ghstack-poisoned]
return size;
}

TORCH_CHECK(divisions >= 2, "Only 2 or more divisions are supported");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit should be TORCH_CHECK_VALUE so it raises value error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, done.

guangyey added 5 commits July 31, 2025 18:19
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
guangyey added a commit that referenced this pull request Aug 1, 2025
[ghstack-poisoned]
@iremyux iremyux added the ciflow/win-arm64 Trigger Windows Arm64 CI Workflows label Aug 6, 2025
@iremyux
Copy link
Collaborator

iremyux commented Aug 6, 2025

Adding ciflow/win-arm64 label to trigger Windows Arm64 CI and its test purposes - nothing about this PR specifically. (It should not effect the acceptance of the PR even if it fails.)

guangyey added a commit that referenced this pull request Aug 6, 2025
@guangyey
Copy link
Collaborator Author

guangyey commented Aug 6, 2025

@albanD May I know if this PR is reasonable to you?

[ghstack-poisoned]
[ghstack-poisoned]
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 ciflow/win-arm64 Trigger Windows Arm64 CI Workflows ciflow/xpu Run XPU CI tasks open source topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants