Skip to content

[WIP] Add libtorch [static | shared] for macOS [arm64 | x86_64] #1078

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 1 commit into
base: main
Choose a base branch
from

Conversation

powderluv
Copy link
Contributor

Reconcile macOS builds and linux builds.
(Cross-compile of shared arm64 builds seems to have failed).

Sample invocation

LIBTORCH_VARIANT=shared BUILD_PYTHONLESS=1 MAC_PACKAGE_WORK_DIR=/Volumes/builder/mybuild1 PACKAGE_TYPE=libtorch USE_MPS=OFF CROSS_COMPILE_ARM64=ON ./wheel/build_wheel.sh 3.10 1.12.0-rc7 21
(base) anush@denali pytorch % ls -ltr libtorch-macos-s*
-rw-r--r--  1 anush  staff  150494169 Jun 27 11:53 libtorch-macos-shared-x86_64-1.12.0-rc7.zip
-rw-r--r--  1 anush  staff  494689799 Jun 27 14:22 libtorch-macos-static-x86_64-1.12.0-rc7.zip
-rw-r--r--  1 anush  staff  117049374 Jun 27 14:57 libtorch-macos-static-arm64-1.12.0-rc7.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants