forked from alicevision/AliceVision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cudaInstallAppveyor.cmd
36 lines (26 loc) · 1.12 KB
/
cudaInstallAppveyor.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
set CUDA_VERSION_MAJOR=9
set CUDA_VERSION_MINOR=2
set CUDA_VERSION_MICRO=88
set OS_PLATFORM=windows
set CUDA_VERSION=%CUDA_VERSION_MAJOR%.%CUDA_VERSION_MINOR%
set CUDA_VERSION_FULL=%CUDA_VERSION%.%CUDA_VERSION_MICRO%
set CUDA_SDK_FILENAME=cuda_%CUDA_VERSION_FULL%_%OS_PLATFORM%
set CUDA_SDK_URL=https://developer.nvidia.com/compute/cuda/%CUDA_VERSION%/Prod/local_installers/%CUDA_SDK_FILENAME%
echo Downloading CUDA toolkit %CUDA_VERSION_FULL%
echo -- url: %CUDA_SDK_URL%
appveyor DownloadFile %CUDA_SDK_URL% -FileName %CUDA_SDK_FILENAME%.exe
dir
echo Installing CUDA toolkit %CUDA_VERSION_FULL%
%CUDA_SDK_FILENAME%.exe -s nvcc_%CUDA_VERSION% ^
cublas_%CUDA_VERSION% ^
cublas_dev_%CUDA_VERSION% ^
cudart_%CUDA_VERSION% ^
curand_%CUDA_VERSION% ^
curand_dev_%CUDA_VERSION%
echo CUDA toolkit installed
dir "%ProgramFiles%"
set CUDA_PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VERSION%
set CUDA_BIN_PATH=%CUDA_PATH%\bin
set PATH=%CUDA_BIN_PATH%;%CUDA_PATH%\libnvvp;%PATH%
nvcc -V