From 984570592d1eb2f2166cc5a847037ee022e1d911 Mon Sep 17 00:00:00 2001 From: hackyminer Date: Sat, 15 Dec 2018 06:32:50 +0900 Subject: [PATCH] appveyor: cache C:\CUDA\* --- appveyor.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 82b66523d0..c962607af2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,22 +17,29 @@ environment: HUNTER_CACHE_TOKEN: secure: VnpF1MH5MEFvUI5MiMMMFlmbDdst+bfom5ZFVgalYPp/SYDhbejjXJm9Dla/IgpC +cache: + - C:\CUDA\v8.0 -> appveyor.yml + - C:\CUDA\v9.1 -> appveyor.yml + - C:\CUDA\v10.0 -> appveyor.yml + # Download CUDA Windows installer (local) and extract /compiler/* to /CUDA/vX.0/ zip archive. install: | git submodule update --init --recursive if "%CUDA_VER%" == "8.0" set CUDA_ARCHIVE=cuda_8.0.61_windows-exe if "%CUDA_VER%" == "9.1" set CUDA_ARCHIVE=cuda_9.1.85_windows if "%CUDA_VER%" == "10.0" set CUDA_ARCHIVE=cuda_10.0.130_411.31_windows - 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 - 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 - mkdir C:\CUDA - if "%CUDA_VER%" NEQ "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA nvcc/* nvrtc*/* - if "%CUDA_VER%" == "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA compiler/* nvrtc*/* - if "%CUDA_VER%" NEQ "8.0" rename C:\CUDA\nvcc v%CUDA_VER% - if "%CUDA_VER%" == "8.0" rename C:\CUDA\compiler v%CUDA_VER% - move C:\CUDA\nvrtc\bin\*.* C:\CUDA\v%CUDA_VER%\bin\ - move C:\CUDA\nvrtc_dev\include\*.* C:\CUDA\v%CUDA_VER%\include\ - move C:\CUDA\nvrtc_dev\lib\x64\*.* C:\CUDA\v%CUDA_VER%\lib\x64\ + 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) + 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) + if NOT EXIST C:\CUDA mkdir C:\CUDA + if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" NEQ "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA nvcc/* nvrtc*/*) + if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" == "8.0" 7z x %CUDA_ARCHIVE%.exe -oC:\CUDA compiler/* nvrtc*/*) + if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" NEQ "8.0" rename C:\CUDA\nvcc v%CUDA_VER%) + if NOT EXIST C:\CUDA\v%CUDA_VER% (if "%CUDA_VER%" == "8.0" rename C:\CUDA\compiler v%CUDA_VER%) + + if EXIST C:\CUDA\nvrtc\bin move C:\CUDA\nvrtc\bin\*.* C:\CUDA\v%CUDA_VER%\bin\ + if EXIST C:\CUDA\nvrtc_dev\include move C:\CUDA\nvrtc_dev\include\*.* C:\CUDA\v%CUDA_VER%\include\ + if EXIST C:\CUDA\nvrtc_dev\lib\x64 move C:\CUDA\nvrtc_dev\lib\x64\*.* C:\CUDA\v%CUDA_VER%\lib\x64\ + set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%;C:\CUDA\v%CUDA_VER%\bin pip install requests gitpython nvcc -V