@@ -16,49 +16,39 @@ branches:
16
16
# environment variables
17
17
environment :
18
18
global :
19
- INTELOCLSDKROOT : C:\Program Files (x86)\Intel\OpenCL SDK\
20
19
BOOST_COMPUTE_DEFAULT_PLATFORM : Intel(R) OpenCL
21
- OPENCL_INCLUDE_DIR : C:\opencl\include
22
- # Downloaded OpenCL headers version (2.1)
23
- OPENCL_HEADERS_VER : 21
24
20
# OpenCL version used in tests (2.0)
25
21
OPENCL_VERSION : 200
26
22
CXXFLAGS : -DBOOST_COMPUTE_MAX_CL_VERSION=%OPENCL_VERSION%
27
23
matrix :
28
- - VS_VER : 2015
29
- CMAKE_GENERATOR : Visual Studio 14 2015 Win64
30
- BOOST_ROOT : C:\Libraries\boost_1_59_0
31
- BOOST_LIBRARYDIR : C:\Libraries\boost_1_59_0\lib64-msvc-14.0
32
- - VS_VER : 2013
33
- CMAKE_GENERATOR : Visual Studio 12 2013 Win64
34
- BOOST_ROOT : C:\Libraries\boost_1_58_0
35
- BOOST_LIBRARYDIR : C:\Libraries\boost_1_58_0\lib64-msvc-12.0
36
-
37
- image : Visual Studio 2015
38
-
39
- # build platforms
40
- platform :
41
- - x64
42
-
43
- configuration :
44
- - Debug
24
+ - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
25
+ CMAKE_GENERATOR : Visual Studio 15 2017 Win64
26
+ BOOST_ROOT : C:\Libraries\boost_1_67_0
27
+ - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
28
+ CMAKE_GENERATOR : Visual Studio 14 2015 Win64
29
+ BOOST_ROOT : C:\Libraries\boost_1_63_0
30
+ - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2013
31
+ CMAKE_GENERATOR : Visual Studio 12 2013 Win64
32
+ BOOST_ROOT : C:\Libraries\boost_1_58_0
45
33
46
34
before_build :
47
- - appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/8539/intel_sdk_for_opencl_setup_6.0.0.1049.exe"
48
- - start /wait .\intel_sdk_for_opencl_setup_6.0.0.1049.exe install --output=output.log --eula=accept
49
- # - type output.log
50
- - appveyor DownloadFile "http://registrationcenter-download.intel.com/akdlm/irc_nas/9022/opencl_runtime_16.1.1_x64_setup.msi"
51
- - start /wait msiexec /i opencl_runtime_16.1.1_x64_setup.msi /qn /l*v msiexec2.log
52
- # - type msiexec2.log
53
- - git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git %OPENCL_INCLUDE_DIR%\CL
35
+ # Install OpenCL headers and libraries
36
+ - set NUGETDIR=C:\NUGET
37
+ - nuget install opencl-nug -Version 0.777.77 -OutputDirectory %NUGETDIR%
38
+ - dir %NUGETDIR%\opencl-nug.0.777.77\build\native\
39
+ - set OCL_ROOT=%NUGETDIR%\opencl-nug.0.777.77\build\native
40
+ # Install OpenCL Runtime
41
+ - choco install opencl-intel-cpu-runtime
42
+ # Check if it's working
43
+ - ps : appveyor DownloadFile "https://ci.appveyor.com/api/projects/oblomov/clinfo/artifacts/clinfo.exe?job=platform:+x64" -FileName clinfo.exe
44
+ - .\clinfo.exe
54
45
55
46
build_script :
56
47
- mkdir build && cd build
57
- - cmake -G"%CMAKE_GENERATOR%" -DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON -DOpenCL_INCLUDE_DIR=%OPENCL_INCLUDE_DIR% ..
48
+ - cmake -G"%CMAKE_GENERATOR%" -DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON ..
58
49
- cmake --build . --config Debug
59
50
60
51
test_script :
61
52
- .\example\Debug\list_devices.exe
62
53
- .\example\Debug\hello_world.exe
63
- - ctest --output-on-failure
64
- - ctest --output-on-failure
54
+ - ctest --output-on-failure --repeat-until-fail 2
0 commit comments