Skip to content

Commit b378e24

Browse files
authored
fix cuda 12.7 build-cuda.sh
1 parent b803bdf commit b378e24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/scripts/build-cuda.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ declare cuda_version
55

66
set -xeuo pipefail
77
build_capability="50;52;60;61;70;75;80;86;89;90;100;120"
8-
[[ "${cuda_version}" == 11.7.* ]] && build_capability=${build_capability%??????????????????}
9-
[[ "${cuda_version}" == 11.8.* ]] && build_capability=${build_capability%?????????}
8+
[[ "${cuda_version}" == 11.7.* ]] && build_capability=${build_capability%???????????????????????}
9+
[[ "${cuda_version}" == 11.8.* ]] && build_capability=${build_capability%??????????????????}
10+
[[ "${cuda_version}" < 12.7 ]] && build_capability=${build_capability%??????????????????}
1011
[[ "${build_os}" = windows-* ]] && python3 -m pip install ninja
1112

1213
if [ "${build_os:0:6}" == ubuntu ]; then

0 commit comments

Comments
 (0)