Skip to content

Commit 07ab517

Browse files
committed
test
1 parent 5b02305 commit 07ab517

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

.github/scripts/filter-matrix.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def main(args: List[str]) -> None:
2828
if all(
2929
[
3030
item["python_version"] not in disabled_python_versions,
31-
item["desired_cuda"] != cpu_tag,
31+
# only test cu128 for aarch64 for now for quick CI
32+
item["desired_cuda"] == "cu128",
3233
]
3334
):
3435
filtered_includes.append(item)

packaging/pre_build_script.sh

+13-11
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ python3 -m pip install pyyaml
77

88
install -y ninja-build gettext
99

10-
PLATFORM="amd64"
11-
PLATFORM=x86_64
12-
BAZEL_PLATFORM=amd64
13-
if [[ $(uname -m) == "aarch64" ]]; then
14-
PLATFORM=aarch64
15-
BAZEL_PLATFORM=arm64
16-
17-
rm -rf /opt/openssl # Not sure whats up with the openssl mismatch
18-
fi
10+
# PLATFORM="amd64"
11+
# PLATFORM=x86_64
12+
# BAZEL_PLATFORM=amd64
13+
# if [[ $(uname -m) == "aarch64" ]]; then
14+
# PLATFORM=aarch64
15+
# BAZEL_PLATFORM=arm64
16+
17+
# rm -rf /opt/openssl # Not sure whats up with the openssl mismatch
18+
# fi
1919

20-
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-${BAZEL_PLATFORM} \
21-
&& mv bazelisk-linux-${BAZEL_PLATFORM} /usr/bin/bazel \
20+
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-`uname -s`-`uname -m` -o bazelisk \
21+
&& mv bazelisk /usr/bin/bazel \
2222
&& chmod +x /usr/bin/bazel
2323

2424
TORCH_TORCHVISION=$(grep "^torch" py/requirements.txt)
@@ -49,6 +49,8 @@ if [[ "${CU_VERSION::4}" < "cu12" ]]; then
4949
-e "s/tensorrt-cu12-libs/tensorrt-${CU_VERSION::4}-libs/g" \
5050
pyproject.toml
5151
fi
52+
53+
5254
curl -L https://github.com/a8m/envsubst/releases/download/v1.4.2/envsubst-Linux-arm64 -o envsubst \
5355
&& mv envsubst /usr/bin/envsubst && chmod +x /usr/bin/envsubst
5456

setup.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def load_dep_info():
128128

129129
if RELEASE:
130130
__version__ = os.environ.get("BUILD_VERSION")
131+
print(f"lan added BUILD_VERSION: {__version__}")
131132
else:
132133
__version__ = f"{get_base_version()}.dev0+{get_git_revision_short_hash()}"
133134

@@ -190,11 +191,11 @@ def build_libtorchtrt_cxx11_abi(
190191

191192
if IS_SBSA:
192193
if CI_BUILD:
193-
cmd.append("--//toolchains/dep_src:torch=whl")
194-
195-
if CI_BUILD:
196-
cmd.append("--platforms=//toolchains:ci_rhel_x86_64_linux")
197-
print("CI based build")
194+
cmd.append("--platforms=//toolchains/dep_src:torch=whl")
195+
else:
196+
if CI_BUILD:
197+
cmd.append("--platforms=//toolchains:ci_rhel_x86_64_linux")
198+
print("CI based build")
198199

199200
print(f"building libtorchtrt {cmd=}")
200201
status_code = subprocess.run(cmd).returncode

0 commit comments

Comments
 (0)