forked from boostorg/compute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
64 lines (54 loc) · 2.02 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
# clone directory
clone_folder: C:\boost.compute
# do not build on tags
skip_tags: true
# clone only the top level commit
shallow_clone: true
# branches to build
branches:
# blacklist
except:
- gh-pages
# environment variables
environment:
global:
INTELOCLSDKROOT: C:\Program Files (x86)\Intel\OpenCL SDK\
BOOST_COMPUTE_DEFAULT_PLATFORM: Intel(R) OpenCL
OPENCL_INCLUDE_DIR: C:\opencl\include
# Downloaded OpenCL headers version (2.1)
OPENCL_HEADERS_VER: 21
# OpenCL version used in tests (2.0)
OPENCL_VERSION: 200
CXXFLAGS: -DBOOST_COMPUTE_MAX_CL_VERSION=%OPENCL_VERSION%
matrix:
- VS_VER: 2015
CMAKE_GENERATOR: Visual Studio 14 2015 Win64
BOOST_ROOT: C:\Libraries\boost_1_59_0
BOOST_LIBRARYDIR: C:\Libraries\boost_1_59_0\lib64-msvc-14.0
- VS_VER: 2013
CMAKE_GENERATOR: Visual Studio 12 2013 Win64
BOOST_ROOT: C:\Libraries\boost_1_58_0
BOOST_LIBRARYDIR: C:\Libraries\boost_1_58_0\lib64-msvc-12.0
image: Visual Studio 2015
# build platforms
platform:
- x64
configuration:
- Debug
before_build:
- appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/8539/intel_sdk_for_opencl_setup_6.0.0.1049.exe"
- start /wait .\intel_sdk_for_opencl_setup_6.0.0.1049.exe install --output=output.log --eula=accept
#- type output.log
- appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/9022/opencl_runtime_16.1.1_x64_setup.msi"
- start /wait msiexec /i opencl_runtime_16.1.1_x64_setup.msi /qn /l*v msiexec2.log
#- type msiexec2.log
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git %OPENCL_INCLUDE_DIR%\CL
build_script:
- mkdir build && cd build
- cmake -G"%CMAKE_GENERATOR%" -DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON -DOpenCL_INCLUDE_DIR=%OPENCL_INCLUDE_DIR% ..
- cmake --build . --config Debug
test_script:
- .\example\Debug\list_devices.exe
- .\example\Debug\hello_world.exe
- ctest --output-on-failure
- ctest --output-on-failure