Skip to content

Commit ce9fa95

Browse files
committed
[ci] cublas changed the name!
1 parent a70d6b7 commit ce9fa95

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ install:
6363
- sudo dpkg -i $CUDA_REPO_PKG
6464
- rm ${CUDA_REPO_PKG}
6565
- travis_retry sudo apt-get -y update
66-
- travis_retry sudo apt-get install -y --no-install-recommends --allow-unauthenticated cuda-core-$CUDA_PKG_VERSION cuda-cudart-dev-$CUDA_PKG_VERSION cuda-cublas-dev-$CUDA_PKG_VERSION cuda-curand-dev-$CUDA_PKG_VERSION
67-
# - >
68-
# if [ ${CUDA_VERSION_MAJOR} -lt 10 ]; then
69-
# travis_retry sudo apt-get install -y --no-install-recommends --allow-unauthenticated cuda-core-$CUDA_PKG_VERSION cuda-cudart-dev-$CUDA_PKG_VERSION cuda-cublas-dev-$CUDA_PKG_VERSION cuda-curand-dev-$CUDA_PKG_VERSION
70-
# else
71-
# travis_retry sudo apt-get install -y --no-install-recommends --allow-unauthenticated libcuda-dev libcudart-dev libcublas-dev libcurand-dev
72-
# fi
66+
# cuda > 10.0 changed cublas naming
67+
- >
68+
if [ ${CUDA_VERSION_MAJOR} -lt 10 ]; then
69+
CUBLAS_PKG=cuda-cublas-dev-$CUDA_PKG_VERSION
70+
else
71+
CUBLAS_PKG=libcublas-dev
72+
fi
73+
- travis_retry sudo apt-get install -y --no-install-recommends --allow-unauthenticated cuda-core-$CUDA_PKG_VERSION cuda-cudart-dev-$CUDA_PKG_VERSION ${CUBLAS_PKG} cuda-curand-dev-$CUDA_PKG_VERSION
7374
- sudo ln -s /usr/local/cuda-${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR} /usr/local/cuda
7475

7576
before_script:

0 commit comments

Comments
 (0)