Skip to content

Commit

Permalink
Add libtorch-arm64 to the matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Nov 7, 2023
1 parent a14a70a commit bb9d983
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/scripts/generate_binary_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ def get_libtorch_install_command(
else f"{prefix}-{_libtorch_variant}-latest.zip"
)

if os == MACOS:
build_name = "libtorch-macos-latest.zip"
if os in [MACOS, MACOS_ARM64]:
arch = "x86_64" if os == MACOS else "arm64"
build_name = f"libtorch-macos-{arch}-latest.zip"
if channel == RELEASE:
build_name = f"libtorch-macos-{mod.CURRENT_VERSION}.zip"
elif os == LINUX and (channel == RELEASE or channel == TEST):
Expand Down Expand Up @@ -357,7 +358,7 @@ def generate_libtorch_matrix(
ret: List[Dict[str, str]] = []

# macos-arm64 does not have any libtorch builds
if os == MACOS_ARM64:
if os == MACOS_ARM64 and channel != "nightly":
return ret

if arches is None:
Expand Down

0 comments on commit bb9d983

Please sign in to comment.