Skip to content

Commit c8ad6cc

Browse files
committed
test
1 parent 07ab517 commit c8ad6cc

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

packaging/pre_build_script.sh

+9-8
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ install -y ninja-build gettext
1010
# PLATFORM="amd64"
1111
# PLATFORM=x86_64
1212
# 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
13+
PLATFORM_S=$(uname -s)
14+
PLATFORM_M=$(uname -m)
15+
if [[ ${PLATFORM_M} == "aarch64" ]]; then
16+
# PLATFORM=aarch64
17+
# BAZEL_PLATFORM=arm64
18+
rm -rf /opt/openssl # Not sure whats up with the openssl mismatch
19+
fi
1920

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 \
21+
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-${PLATFORM_S}-${PLATFORM_M} -o bazelisk-${PLATFORM_S}-${PLATFORM_M} \
22+
&& mv bazelisk-${PLATFORM_S}-${PLATFORM_M} /usr/bin/bazel \
2223
&& chmod +x /usr/bin/bazel
2324

2425
TORCH_TORCHVISION=$(grep "^torch" py/requirements.txt)

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ def build_libtorchtrt_cxx11_abi(
190190
cmd.append("--config=jetpack")
191191

192192
if IS_SBSA:
193+
cmd.append("--config=use_torch_whl")
193194
if CI_BUILD:
194-
cmd.append("--platforms=//toolchains/dep_src:torch=whl")
195+
cmd.append("--platforms=//toolchains:aarch64_linux")
195196
else:
196197
if CI_BUILD:
197198
cmd.append("--platforms=//toolchains:ci_rhel_x86_64_linux")

0 commit comments

Comments
 (0)