Skip to content

Commit cd4be43

Browse files
pytorchbotper
andauthored
Enable build on aarch64 linux (#3896) (#4017)
Summary: There's a mismatch in torch and torchvision dependecies for the linux-aarch64 packages and missing support in resolve_buck script. Signed-off-by: Per Åstrand <[email protected]> Change-Id: I491499ca5e524fd2788919b6446a370fe44fdb86 Pull Request resolved: #3896 Reviewed By: digantdesai Differential Revision: D58741803 Pulled By: mergennachin fbshipit-source-id: 7fe598da58ea6fc29726f38cfb394a9eda832c44 (cherry picked from commit 337174c) Co-authored-by: Per Åstrand <[email protected]>
1 parent 75fafc0 commit cd4be43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/resolve_buck.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
# Copyright 2024 Arm Limited and/or its affiliates.
34
# All rights reserved.
45
#
56
# This source code is licensed under the BSD-style license found in the
@@ -72,6 +73,10 @@ class BuckInfo:
7273
"029b0bcc6f8e399185c1d0f574eba204934722b5",
7374
],
7475
),
76+
("linux", "aarch64"): BuckInfo(
77+
archive_name="buck2-aarch64-unknown-linux-gnu.zst",
78+
target_versions=["49670bee56a7d8a7696409ca6fbf7551d2469787"],
79+
),
7580
("darwin", "aarch64"): BuckInfo(
7681
archive_name="buck2-aarch64-apple-darwin.zst",
7782
target_versions=["99773fe6f7963a72ae5f7b737c02836e"],
@@ -122,7 +127,7 @@ def resolve_buck2(args: argparse.Namespace) -> Union[str, int]:
122127
arch = "unknown"
123128
if machine == "x86" or machine == "x86_64" or machine == "amd64":
124129
arch = "x86_64"
125-
elif machine == "arm64":
130+
elif machine == "arm64" or machine == "aarch64":
126131
arch = "aarch64"
127132

128133
os_family = "unknown"

0 commit comments

Comments
 (0)