File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,18 @@ INDEX_URL=https://download.pytorch.org/whl/${CHANNEL}/${CU_VERSION}
5
5
PLATFORM=$( python -c " import sys; print(sys.platform)" )
6
6
7
7
if [[ $( uname -m) == " aarch64" ]]; then
8
- # install cuda 12.8 only for aarch64 for now
9
- VER=" 12-8"
8
+ # install cuda for aarch64
9
+ # CU_VERSION: cu128 --> CU_VER: 12-8
10
+ CU_VER=${CU_VERSION: 2: 2} -${CU_VERSION: 4: 1}
10
11
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
12
+ dnf -y install cuda-compiler-${CU_VER } .aarch64 \
13
+ cuda-libraries-${CU_VER } .aarch64 \
14
+ cuda-libraries-devel-${CU_VERER } .aarch64
14
15
dnf clean all
15
16
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
16
17
ls -lart /usr/local/
17
18
nvcc --version
18
- echo " cuda installed successfully"
19
+ echo " cuda ${CU_VER} installed successfully"
19
20
fi
20
21
21
22
# Install all the dependencies required for Torch-TensorRT
Original file line number Diff line number Diff line change @@ -15,15 +15,16 @@ if [[ $(uname -m) == "aarch64" ]]; then
15
15
# aarch64 does not have envsubst pre-installed in the image, install it here
16
16
curl -L https://github.com/a8m/envsubst/releases/download/v1.4.2/envsubst-Linux-arm64 -o envsubst \
17
17
&& mv envsubst /usr/bin/envsubst && chmod +x /usr/bin/envsubst
18
- # install cuda 12.8 only for aarch64 for now
19
- VER=" 12-8"
18
+ # install cuda for aarch64
19
+ # CU_VERSION: cu128 --> CU_VER: 12-8
20
+ CU_VER=${CU_VERSION: 2: 2} -${CU_VERSION: 4: 1}
20
21
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/sbsa/cuda-rhel8.repo
21
- dnf -y install cuda-compiler-${VER } .aarch64 \
22
- cuda-libraries-${VER } .aarch64 \
23
- cuda-libraries-devel-${VER } .aarch64
22
+ dnf -y install cuda-compiler-${CU_VER } .aarch64 \
23
+ cuda-libraries-${CU_VER } .aarch64 \
24
+ cuda-libraries-devel-${CU_VERER } .aarch64
24
25
dnf clean all
25
26
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
26
- echo " cuda installed successfully"
27
+ echo " cuda ${CU_VER} installed successfully"
27
28
fi
28
29
29
30
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.26.0/bazelisk-linux-${BAZEL_PLATFORM} \
You can’t perform that action at this time.
0 commit comments