Skip to content

Fix Context CPU allocator header dependency - #54

Merged
cyyever merged 1 commit into
trimfrom
fix/context-cpu-allocator-include
Nov 17, 2026
Merged

cyyever merged 1 commit into
trimfrom
fix/context-cpu-allocator-include

Conversation

@cyyever

@cyyever cyyever commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Linked issue or supporting maintainer

Requested by the BakeLab maintainer after Gitea CUDA wheel run 8695 failed.

BC-breaking?

No.

Agent details (AI-generated)

ATen/Context.cpp calls c10::GetCPUAllocator() but does not include its declaring header. The CUDA wheel build fails at line 819 because the declaration is no longer available through transitive includes.

Include c10/core/CPUAllocator.h directly, matching the explicit dependency in current upstream PyTorch. No allocator behavior or build flags change.

Validation: verified the declaration exists in the pinned source and git diff --check passes. Full CUDA wheel compilation was not run locally; the Gitea CD is the integration validation. No redundant unit test added for this include-only change.

@cyyever
cyyever marked this pull request as ready for review November 17, 2026 04:15
@cyyever
cyyever merged commit 51f7187 into trim Nov 17, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant