-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.appveyor.yml
107 lines (87 loc) · 3.77 KB
/
.appveyor.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
shallow_clone: true
platform:
# - x86
- x64
configuration:
- Debug
# - Release
image:
- Visual Studio 2015
# - Visual Studio 2017
# cache:
# - C:\cmake-3.10.1-win32-x86
# - C:\Program Files (x86)\IntelSWTools
# - C:\w_mkl_2018.0.124.exe
environment:
matrix:
# - BLAS_VERSION: Intel10_32
# - BLAS_VERSION: Intel10_64lp
# - BLAS_VERSION: Intel
- BLAS_VERSION: Intel10_64lp_seq
BUILD_STATIC : ON
- BLAS_VERSION: Intel10_64lp_seq
BUILD_STATIC : OFF
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
############################################################################
# Install CMake
############################################################################
- ps: |
if (![IO.File]::Exists("C:\cmake-3.10.1-win64-x64\bin\cmake.exe")) {
Start-FileDownload 'https://cmake.org/files/v3.10/cmake-3.10.1-win64-x64.zip'
7z x -y cmake-3.10.1-win64-x64.zip -oC:\
}
$env:PATH="C:\cmake-3.10.1-win64-x64\bin;$env:PATH"
############################################################################
# Install MKL
############################################################################
- ps: |
if (![IO.File]::Exists("C:\w_mkl_2018.0.124.exe")) {
ECHO 'w_mkl_2018.0.124.exe does not exist. Preparing to install MKL ..'
Start-FileDownload 'http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/12079/w_mkl_2018.0.124.exe' -FileName 'C:\w_mkl_2018.0.124.exe'
C:\w_mkl_2018.0.124.exe -s -l c:\logs\extract-mkl.log -a install --eula=accept --components=all --output='C:\logs\install-mkl-output.txt' --installdir='C:\Program Files (x86)\IntelSWTools' --log='c:\logs\install-mkl.log' | Out-Null
ECHO 'Done'
}
$env:LD_MKL_PATH='C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\mkl\lib\intel64_win\'
$env:LIB="$env:LD_MKL_PATH;$env:LIB"
$env:MKLROOT='C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\mkl'
############################################################################
# Install OpenBlAS
############################################################################
- nuget install openblas -o C:\
before_build:
- call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\bin\compilervars_arch.bat" intel64 vs2015
- cd C:\projects\cpp-mkl-test
- "ECHO %BLAS_VERSION%"
- "ECHO 'cmake -DBLA_STATIC=%BUILD_STATIC% -DBLA_VENDOR=%BLAS_VERSION% -G \"Visual Studio 14 2015 Win64\" .. '"
- cmake --version
- "ECHO 'MKLROOT is %MKLROOT%'"
- ps: |
mkdir build
cd build
- cmake -DBLA_STATIC=%BUILD_STATIC% -DBLA_VENDOR=%BLAS_VERSION% -G "Visual Studio 14 2015 Win64" ..
build_script:
- cmake --build .
after_build:
- appveyor PushArtifact CMakeCache.txt
- appveyor PushArtifact CMakeFiles/CMakeOutput.log
- appveyor PushArtifact CMakeFiles/CMakeError.log
test_script:
- ps: |
if ($env:BUILD_STATIC -eq 'OFF') {
ECHO 'BUILD_STATIC is OFF. Compying shipping libraries'
cd 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\redist\intel64_win\mkl\'
cp *.dll C:\projects\cpp-mkl-test\build\
}else{
ECHO 'BUILD_STATIC is ON. No need to copy runtime dll'
}
- cd C:\projects\cpp-mkl-test\build\
- .\Debug\CMakeHelloWorld.exe
deploy: off
on_failure:
- appveyor PushArtifact CMakeCache.txt
- appveyor PushArtifact CMakeFiles/CMakeOutput.log
- appveyor PushArtifact CMakeFiles/CMakeError.log
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))