1
- set -exou pipefail
2
-
1
+ # set -exou pipefail
2
+ set -x
3
3
TORCH_TORCHVISION=$( grep " ^torch" ${PWD} /py/requirements.txt)
4
4
INDEX_URL=https://download.pytorch.org/whl/${CHANNEL} /${CU_VERSION}
5
5
PLATFORM=$( python -c " import sys; print(sys.platform)" )
6
6
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
+
7
21
# Install all the dependencies required for Torch-TensorRT
8
22
pip install --pre ${TORCH_TORCHVISION} --index-url ${INDEX_URL}
9
23
pip install --pre -r ${PWD} /tests/py/requirements.txt
@@ -12,17 +26,6 @@ pip install --pre -r ${PWD}/tests/py/requirements.txt
12
26
if [[ ${PLATFORM} == win32 ]]; then
13
27
pip install ${RUNNER_ARTIFACT_DIR} /torch_tensorrt* .whl
14
28
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
26
29
pip install /opt/torch-tensorrt-builds/torch_tensorrt* .whl
27
30
fi
28
31
0 commit comments