Skip to content

Commit ca9e656

Browse files
committed
fix url
1 parent 20c10a5 commit ca9e656

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

script/cuda.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,24 @@ fi
3535

3636
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "$IDX" = "cu92" ]; then
3737
export CUDA_SHORT=9.2
38-
export CUDA=9.2.148
38+
export CUDA_URL=https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod2/local_installers2
39+
export CUDA_FILE=cuda_${CUDA_SHORT}.148_win10
3940
export TOOLKIT="cudatoolkit=${CUDA_SHORT}"
41+
42+
4043
fi
4144

4245
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "$IDX" = "cu100" ]; then
4346
export CUDA_SHORT=10.0
44-
export CUDA=10.0.130_411.31
47+
export CUDA_URL=https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod/local_installers
48+
export CUDA_FILE=cuda_${CUDA_SHORT}.130_411.31_win10
4549
export TOOLKIT="cudatoolkit=${CUDA_SHORT}"
4650
fi
4751

4852
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "$IDX" = "cu101" ]; then
4953
export CUDA_SHORT=10.1
50-
export CUDA=10.1.105_418.96
54+
export CUDA_URL=https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod/local_installers
55+
export CUDA_FILE=cuda_${CUDA_SHORT}.105_418.96_win10.exe
5156
export TOOLKIT="cudatoolkit=${CUDA_SHORT}"
5257
fi
5358

@@ -77,12 +82,9 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${IDX}" != "cpu" ]; then
7782
fi
7883

7984
if [ "${TRAVIS_OS_NAME}" = "windows" ] && [ "${IDX}" != "cpu" ]; then
80-
wget -nv "https://developer.nvidia.com/compute/cuda/${CUDA_SHORT}/Prod2/local_installers2/cuda_${CUDA}_win10"
81-
PowerShell -Command "Start-Process -FilePath \"cuda_${CUDA}_win10\" -ArgumentList \"-s nvcc_${CUDA_SHORT}\" -Wait -NoNewWindow"
82-
ls /c/Program\ Files
83-
ls /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit
84-
ls /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA
85-
ls /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v${CUDA_SHORT}
85+
wget -nv "${CUDA_URL}/${CUDA_FILE}"
86+
PowerShell -Command "Start-Process -FilePath \"${CUDA_FILE}\" -ArgumentList \"-s nvcc_${CUDA_SHORT}\" -Wait -NoNewWindow"
87+
ls /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017
8688
CUDA_HOME=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v${CUDA_SHORT}
8789
PATH=${CUDA_HOME}/bin:$PATH
8890
PATH=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/MSBuild/15.0/Bin:$PATH

0 commit comments

Comments
 (0)