Skip to content

Commit 008c254

Browse files
committed
test
1 parent b0d7717 commit 008c254

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/scripts/install-torch-tensorrt.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
1-
set -exou pipefail
2-
1+
#set -exou pipefail
2+
set -x
33
TORCH_TORCHVISION=$(grep "^torch" ${PWD}/py/requirements.txt)
44
INDEX_URL=https://download.pytorch.org/whl/${CHANNEL}/${CU_VERSION}
55
PLATFORM=$(python -c "import sys; print(sys.platform)")
66

7+
if [[ $(uname -m) == "aarch64" ]]; then
8+
# install cuda 12.8 only for aarch64 for now
9+
VER="12-8"
10+
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/sbsa/cuda-rhel8.repo
11+
dnf -y install cuda-compiler-${VER}.aarch64 \
12+
cuda-libraries-${VER}.aarch64 \
13+
cuda-libraries-devel-${VER}.aarch64
14+
dnf clean all
15+
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
16+
ls -lart /usr/local/
17+
nvcc --version
18+
echo "cuda installed successfully"
19+
fi
20+
721
# Install all the dependencies required for Torch-TensorRT
822
pip install --pre ${TORCH_TORCHVISION} --index-url ${INDEX_URL}
923
pip install --pre -r ${PWD}/tests/py/requirements.txt
@@ -12,17 +26,6 @@ pip install --pre -r ${PWD}/tests/py/requirements.txt
1226
if [[ ${PLATFORM} == win32 ]]; then
1327
pip install ${RUNNER_ARTIFACT_DIR}/torch_tensorrt*.whl
1428
else
15-
if [[ $(uname -m) == "aarch64" ]]; then
16-
# install cuda 12.8 only for aarch64 for now
17-
VER="12-8"
18-
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/sbsa/cuda-rhel8.repo
19-
dnf -y install cuda-compiler-${VER}.aarch64 \
20-
cuda-libraries-${VER}.aarch64 \
21-
cuda-libraries-devel-${VER}.aarch64
22-
dnf clean all
23-
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
24-
echo "cuda installed successfully"
25-
fi
2629
pip install /opt/torch-tensorrt-builds/torch_tensorrt*.whl
2730
fi
2831

0 commit comments

Comments
 (0)