Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit 151dbc6

Browse files
hackmodXhmikosR
authored andcommittedDec 15, 2018
appveyor: cache C:\CUDA\*
1 parent 9ae34a8 commit 151dbc6

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed
 

‎appveyor.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,25 @@ environment:
1616
HUNTER_CACHE_TOKEN:
1717
secure: VnpF1MH5MEFvUI5MiMMMFlmbDdst+bfom5ZFVgalYPp/SYDhbejjXJm9Dla/IgpC
1818

19+
cache:
20+
- C:\CUDA\v8.0 -> appveyor.yml
21+
- C:\CUDA\v9.1 -> appveyor.yml
22+
- C:\CUDA\v10.0 -> appveyor.yml
23+
1924
# Download CUDA Windows installer (local) and extract /compiler/* to /CUDA/vX.0/ zip archive.
2025
install: |
2126
git submodule update --init --recursive
2227
if "%CUDA_VER%" == "8.0" set CUDA_ARCHIVE=cuda_8.0.61_windows-exe
2328
if "%CUDA_VER%" == "9.1" set CUDA_ARCHIVE=cuda_9.1.85_windows
2429
if "%CUDA_VER%" == "10.0" set CUDA_ARCHIVE=cuda_10.0.130_411.31_windows
25-
if "%CUDA_VER%" NEQ "8.0" curl -L https://developer.nvidia.com/compute/cuda/%CUDA_VER%/Prod/local_installers/%CUDA_ARCHIVE% -o %CUDA_ARCHIVE%.exe
26-
if "%CUDA_VER%" == "8.0" curl -L https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_windows-exe -o %CUDA_ARCHIVE%.exe
27-
mkdir C:\CUDA
28-
if "%CUDA_VER%" NEQ "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA nvcc/*
29-
if "%CUDA_VER%" == "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA compiler/*
30-
if "%CUDA_VER%" NEQ "8.0" rename C:\CUDA\nvcc v%CUDA_VER%
31-
if "%CUDA_VER%" == "8.0" rename C:\CUDA\compiler v%CUDA_VER%
30+
if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" NEQ "8.0" curl -L https://developer.nvidia.com/compute/cuda/%CUDA_VER%/Prod/local_installers/%CUDA_ARCHIVE% -o %CUDA_ARCHIVE%.exe)
31+
if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" == "8.0" curl -L https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_windows-exe -o %CUDA_ARCHIVE%.exe)
32+
if NOT EXIST C:\CUDA mkdir C:\CUDA
33+
if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" NEQ "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA nvcc/* nvrtc*/*)
34+
if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" == "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA compiler/* nvrtc*/*)
35+
if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" NEQ "8.0" rename C:\CUDA\nvcc v%CUDA_VER%)
36+
if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" == "8.0" rename C:\CUDA\compiler v%CUDA_VER%)
37+
3238
set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%;C:\CUDA\v%CUDA_VER%\bin
3339
pip install requests gitpython
3440
nvcc -V

0 commit comments

Comments
 (0)
This repository has been archived.