Skip to content

Commit c3ad86c

Browse files
Add Linux CI build for aarch64 (#3516)
1 parent f65c9df commit c3ad86c

File tree

61 files changed

+1913
-986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1913
-986
lines changed

.bazelrc

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ build:cxx11_abi --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1"
3636
build:cxx11_abi --linkopt="-D_GLIBCXX_USE_CXX11_ABI=1"
3737
build:cxx11_abi --define=abi=cxx11_abi
3838

39+
build:jetpack --//toolchains/dep_collection:compute_libs=jetpack
40+
3941
build:ci_testing --define=torchtrt_src=prebuilt --cxxopt="-DDISABLE_TEST_IN_CI" --action_env "NVIDIA_TF32_OVERRIDE=0"
4042
build:use_precompiled_torchtrt --define=torchtrt_src=prebuilt
4143

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.2.1
1+
8.1.1

.github/scripts/filter-matrix.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
import argparse
44
import json
5+
import os
56
import sys
67
from typing import List
78

8-
disabled_python_versions: List[str] = []
9+
# currently we don't support python 3.13t due to tensorrt does not support 3.13t
10+
disabled_python_versions: List[str] = ["3.13t"]
911

1012

1113
def main(args: list[str]) -> None:
@@ -21,11 +23,20 @@ def main(args: list[str]) -> None:
2123

2224
if options.matrix == "":
2325
raise Exception("--matrix needs to be provided")
26+
2427
matrix_dict = json.loads(options.matrix)
2528
includes = matrix_dict["include"]
2629
filtered_includes = []
2730
for item in includes:
28-
if item["python_version"] not in disabled_python_versions:
31+
if item["python_version"] in disabled_python_versions:
32+
continue
33+
if item["gpu_arch_type"] == "cuda-aarch64":
34+
# pytorch image:pytorch/manylinuxaarch64-builder:cuda12.8 comes with glibc2.28
35+
# however, TensorRT requires glibc2.31 on aarch64 platform
36+
# TODO: in future, if pytorch supports aarch64 with glibc2.31, we should switch to use the pytorch image
37+
item["container_image"] = "quay.io/pypa/manylinux_2_34_aarch64"
38+
filtered_includes.append(item)
39+
else:
2940
filtered_includes.append(item)
3041
filtered_matrix_dict = {}
3142
filtered_matrix_dict["include"] = filtered_includes

.github/scripts/generate-tensorrt-test-matrix.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# channel: test if the future tensorRT version test workflow is triggered from the release branch(release/2.5 etc....)
2222
PYTHON_VERSIONS_DICT = {
2323
"nightly": ["3.11"],
24-
"test": ["3.9", "3.10", "3.11", "3.12"],
25-
"release": ["3.9", "3.10", "3.11", "3.12"],
24+
"test": ["3.9", "3.10", "3.11", "3.12", "3.13"],
25+
"release": ["3.9", "3.10", "3.11", "3.12", "3.13"],
2626
}
2727

2828
# please update the future tensorRT version you want to test here

0 commit comments

Comments
 (0)