Skip to content

Commit

Permalink
Same fix for manylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Nov 17, 2023
1 parent 826b048 commit f711806
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/scripts/install_cuda_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CUDA_PACKAGES_IN=(
"cuda-nvtx"
"cuda-nvrtc-devel"
"libcurand-devel" # 11-0+
"libnvjitlink-dev" # 12.0+
)

## -------------------
Expand Down Expand Up @@ -91,9 +92,12 @@ do :
if [[ ${package} == libcu* ]] && version_lt "$CUDA_VERSION_MAJOR_MINOR" "11.0" ; then
package="${package/libcu/cuda-cu}"
fi
# CUDA < 11, -devel- packages were actually -dev
if [[ ${package} == *devel* ]] && version_lt "$CUDA_VERSION_MAJOR_MINOR" "11.0" ; then
package="${package//devel/dev}"
# libnvjitlink not required prior to CUDA 12.0
if [[ ${package} == libnvjitlink-dev* ]] && version_lt "$CUDA_VERSION_MAJOR_MINOR" "12.0" ;then
continue
# CUDA 11+ includes lib* / lib*-dev packages, which if they existed previously where cuda-cu*- / cuda-cu*-dev-
elif [[ ${package} == lib* ]] && version_lt "$CUDA_VERSION_MAJOR_MINOR" "11.0" ; then
package="${package/libcu/cuda-cu}"
fi
# Build the full package name and append to the string.
CUDA_PACKAGES+=" ${package}-${CUDA_MAJOR}-${CUDA_MINOR}"
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/install_cuda_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CUDA_PACKAGES_IN=(
"cuda-nvtx"
"cuda-nvrtc-dev"
"libcurand-dev" # 11-0+
"cuda-cccl" # 11.4+, provides cub and thrust. On 11.3 knwon as cuda-thrust-11-3
"cuda-cccl" # 11.4+, provides cub and thrust. On 11.3 known as cuda-thrust-11-3
"libnvjitlink-dev" # 12.0+
)

Expand Down

0 comments on commit f711806

Please sign in to comment.