Skip to content

Build on arm64: aarch64 torch wheels and OpenMP affinity - #14

Merged
Ale Paredes (ale7714) merged 2 commits into
mainfrom
fix/arm64-torch-wheel
Sep 23, 2026
Merged

Ale Paredes (ale7714) merged 2 commits into
mainfrom
fix/arm64-torch-wheel

Conversation

@ale7714

Copy link
Copy Markdown
Contributor

Cloud builds of this module never resolved on arm64: torch==2.2.2+cpu is a wheel PyTorch publishes for x86_64 only, and the aarch64 wheels on the same index carry the plain 2.2.2 version. The pins now select by platform_machine, so amd64 keeps the +cpu wheel it had.

With the pins fixed, PyInstaller's analysis then aborted on arm64: it imports torch in a child process, and the OpenMP runtime bundled with the aarch64 wheel fails an affinity assertion inside the build container (OMP: Error #13 ... kmp_affinity.cpp). KMP_AFFINITY=disabled on the PyInstaller invocation avoids that; it only affects the packaging step.

Verified on the cloud build image: 21443 passes on amd64 and arm64.

🤖 Generated with Claude Code

PyTorch publishes the +cpu local version only for x86_64; the aarch64 wheels on the same index carry the plain version, so the linux pin never resolved on arm64.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
On the arm64 build runners the OpenMP runtime bundled with the aarch64 torch wheel aborts with an affinity assertion in the child process PyInstaller uses to collect submodules.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@ale7714
Ale Paredes (ale7714) merged commit 3a9d6fc into main Sep 23, 2026
1 check passed
@ale7714
Ale Paredes (ale7714) deleted the fix/arm64-torch-wheel branch September 23, 2026 13:57
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