|
5 | 5 | # Install dependencies |
6 | 6 | python3 -m pip install pyyaml |
7 | 7 |
|
8 | | -# CU_VERSION: cu130, cu129, etc. |
9 | | -# CU_MAJOR_VERSION: 13, 12, etc. |
10 | | -# CU_MINOR_VERSION: 0, 9, etc. |
11 | | -CU_MAJOR_VERSION=${CU_VERSION:2:2} |
12 | | -CU_MINOR_VERSION=${CU_VERSION:4:1} |
13 | | -ctk_name="cuda-toolkit-${CU_MAJOR_VERSION}-${CU_MINOR_VERSION}" |
14 | | - |
15 | 8 | if [[ $(uname -m) == "aarch64" ]]; then |
16 | 9 | IS_AARCH64=true |
17 | 10 | BAZEL_PLATFORM=arm64 |
18 | 11 | os_name=$(cat /etc/os-release | grep -w "ID" | cut -d= -f2) |
19 | 12 | if [[ ${os_name} == "ubuntu" ]]; then |
20 | 13 | IS_JETPACK=true |
21 | 14 | apt-get update |
22 | | - apt-get install -y ninja-build gettext curl libopenblas-dev zip unzip libfmt-dev libopenblas-dev ${ctk_name} |
| 15 | + apt-get install -y ninja-build gettext curl libopenblas-dev zip unzip libfmt-dev libopenblas-dev |
23 | 16 | else |
24 | 17 | IS_SBSA=true |
25 | 18 | yum install -y ninja-build gettext zip unzip |
26 | | - yum install -y fmt-devel ${ctk_name} |
| 19 | + yum install -y fmt-devel |
27 | 20 | fi |
28 | 21 | else |
29 | 22 | BAZEL_PLATFORM="amd64" |
30 | | - yum install -y fmt-devel ${ctk_name} |
| 23 | + yum install -y fmt-devel |
31 | 24 | fi |
32 | 25 |
|
33 | 26 |
|
@@ -69,7 +62,7 @@ export TORCH_INSTALL_PATH=$(python -c "import torch, os; print(os.path.dirname(t |
69 | 62 | # CU_UPPERBOUND eg:13.0 or 12.9 |
70 | 63 | # tensorrt tar for linux and windows are different across cuda version |
71 | 64 | # for sbsa it is the same tar across cuda version |
72 | | -if [[ ${CU_MAJOR_VERSION} == "13" ]]; then |
| 65 | +if [[ ${CU_VERSION:2:2} == "13" ]]; then |
73 | 66 | export CU_UPPERBOUND="13.0" |
74 | 67 | else |
75 | 68 | export CU_UPPERBOUND="12.9" |
|
0 commit comments