forked from AizenFrog/pp_2019_autumn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
40 lines (38 loc) · 1.64 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
environment:
matrix:
# - CMAKE_GENERATOR: "Visual Studio 11 2012"
# MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
# - CMAKE_GENERATOR: "Visual Studio 12 2013"
# MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
- CMAKE_GENERATOR: "Visual Studio 14 2015"
MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15 2017"
MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
CMAKE_GENERATOR: "Visual Studio 16 2019"
MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
install:
- ps: Start-FileDownload 'https://github.com/Microsoft/Microsoft-MPI/releases/download/v10.0/msmpisetup.exe'
- MSMpiSetup.exe -unattend
- set PATH=C:\Program Files\Microsoft MPI\Bin;%PATH%
- ps: Start-FileDownload 'https://github.com/Microsoft/Microsoft-MPI/releases/download/v10.0/msmpisdk.msi'
- msmpisdk.msi /passive
build_script:
- cmd: git submodule update --init --recursive
- cmd: python scripts/lint.py
- cmd: mkdir build
- cmd: cd build
- cmd: cmake -G "%CMAKE_GENERATOR%" ^
-D USE_MPI=ON ^
-D USE_OMP=ON ^
-D USE_TBB=ON ^
-D MPI_C_INCLUDE_PATH:PATH="%MPI_HOME%/Include" ^
-D MPI_C_LIBRARIES:PATH="%MPI_HOME%/Lib/x86/msmpi.lib" ^
-D MPI_CXX_INCLUDE_PATH:PATH="%MPI_HOME%/Include" ^
-D MPI_CXX_LIBRARIES:PATH="%MPI_HOME%/Lib/x86/msmpi.lib" .. ^
-A Win32
- cmd: cmake --build .
- cmd: cd ..
- cmd: set OMP_NUM_THREADS=4
- cmd: scripts/run.bat