12
12
- Visual Studio 2015
13
13
# - Visual Studio 2017
14
14
15
- cache :
15
+ # cache:
16
16
# - C:\cmake-3.10.1-win32-x86
17
17
# - C:\Program Files (x86)\IntelSWTools
18
18
# - C:\w_mkl_2018.0.124.exe
@@ -21,21 +21,31 @@ environment:
21
21
matrix :
22
22
# - BLAS_VERSION: Intel10_32
23
23
# - BLAS_VERSION: Intel10_64lp
24
- - BLAS_VERSION : Intel10_64lp_seq
25
24
# - BLAS_VERSION: Intel
25
+ - BLAS_VERSION : Intel10_64lp_seq
26
+ BUILD_STATIC : ON
27
+
28
+ - BLAS_VERSION : Intel10_64lp_seq
29
+ BUILD_STATIC : OFF
26
30
27
31
28
32
# init:
29
33
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
30
34
31
35
install :
32
- - ps : MD c:\logs\
36
+ # ###########################################################################
37
+ # Install CMake
38
+ # ###########################################################################
33
39
- ps : |
34
40
if (![IO.File]::Exists("C:\cmake-3.10.1-win64-x64\bin\cmake.exe")) {
35
41
Start-FileDownload 'https://cmake.org/files/v3.10/cmake-3.10.1-win64-x64.zip'
36
42
7z x -y cmake-3.10.1-win64-x64.zip -oC:\
37
43
}
38
44
$env:PATH="C:\cmake-3.10.1-win64-x64\bin;$env:PATH"
45
+
46
+ # ###########################################################################
47
+ # Install MKL
48
+ # ###########################################################################
39
49
- ps : |
40
50
if (![IO.File]::Exists("C:\w_mkl_2018.0.124.exe")) {
41
51
ECHO 'w_mkl_2018.0.124.exe does not exist. Preparing to install MKL ..'
@@ -45,21 +55,45 @@ install:
45
55
}
46
56
$env:LD_MKL_PATH='C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\mkl\lib\intel64_win\'
47
57
$env:LIB="$env:LD_MKL_PATH;$env:LIB"
48
- - nuget install openblas -o C:\
58
+ $env:MKLROOT=' C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\mkl'
49
59
60
+ # ###########################################################################
61
+ # Install OpenBlAS
62
+ # ###########################################################################
63
+ - nuget install openblas -o C:\
50
64
51
65
before_build :
66
+ - call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\bin\compilervars_arch.bat" intel64 vs2015
67
+ - cd C:\projects\cpp-mkl-test
52
68
- " ECHO %BLAS_VERSION%"
53
- - " ECHO 'cmake -DBLA_VENDOR=%BLAS_VERSION% -G \" Visual Studio 14 2015 Win64\" .. '"
69
+ - " ECHO 'cmake -DBLA_STATIC=%BUILD_STATIC% -DBLA_VENDOR=%BLAS_VERSION% -G \" Visual Studio 14 2015 Win64\" .. '"
70
+ - cmake --version
71
+ - " ECHO 'MKLROOT is %MKLROOT%'"
54
72
- ps : |
55
73
mkdir build
56
74
cd build
57
- - cmake -DBLA_VENDOR=%BLAS_VERSION% -G "Visual Studio 14 2015 Win64" ..
75
+ - cmake -DBLA_STATIC=%BUILD_STATIC% - DBLA_VENDOR=%BLAS_VERSION% -G "Visual Studio 14 2015 Win64" ..
58
76
59
77
build_script :
60
- - echo DONE
78
+ - cmake --build .
79
+
80
+ after_build :
81
+ - appveyor PushArtifact CMakeCache.txt
82
+ - appveyor PushArtifact CMakeFiles/CMakeOutput.log
83
+ - appveyor PushArtifact CMakeFiles/CMakeError.log
84
+
61
85
62
86
test_script :
87
+ - ps : |
88
+ if ($env:BUILD_STATIC -eq 'OFF') {
89
+ ECHO 'BUILD_STATIC is OFF. Compying shipping libraries'
90
+ cd 'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\redist\intel64_win\mkl\'
91
+ cp *.dll C:\projects\cpp-mkl-test\build\
92
+ }else{
93
+ ECHO 'BUILD_STATIC is ON. No need to copy runtime dll'
94
+ }
95
+ - cd C:\projects\cpp-mkl-test\build\
96
+ - .\Debug\CMakeHelloWorld.exe
63
97
64
98
deploy : off
65
99
0 commit comments