@@ -40,26 +40,29 @@ install:
40
40
- ps : mkdir $env:OPENCL_ROOT
41
41
- ps : pushd $env:OPENCL_ROOT
42
42
- ps : $opencl_registry = $env:OPENCL_REGISTRY
43
- # This downloads the source to the example/demo icd library
44
- - ps : wget $opencl_registry/specs/opencl-icd-1.2.11.0.tgz -OutFile opencl-icd-1.2.11.0.tgz
45
- - ps : 7z x opencl-icd-1.2.11.0.tgz
46
- - ps : 7z x opencl-icd-1.2.11.0.tar
47
- - ps : mv .\icd\* .
43
+ # This downloads the source to the Khronos ICD library
44
+ - git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
45
+ - ps : mv ./OpenCL-ICD-Loader/* .
48
46
# This downloads all the opencl header files
49
47
# The cmake build files expect a directory called inc
50
48
- ps : mkdir inc/CL
51
- - ps : wget $opencl_registry/api/1.2/ | select -ExpandProperty links | where {$_.href -like "*.h*"} | select -ExpandProperty outerText | foreach{ wget $opencl_registry/api/1.2/$_ -OutFile inc/CL/$_ }
49
+ - git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL
50
+ - ps : wget $opencl_registry/api/2.1/cl.hpp -OutFile inc/CL/cl.hpp
52
51
# - ps: dir; if( $lastexitcode -eq 0 ){ dir include/CL } else { Write-Output boom }
53
52
# Create the static import lib in a directory called lib, so findopencl() will find it
54
53
- ps : mkdir lib
55
54
- ps : pushd lib
56
55
- cmake -G "NMake Makefiles" ..
57
56
- nmake
58
57
- ps : popd
58
+ # Switch to OpenCL 1.2 headers
59
+ - ps : pushd inc/CL
60
+ - git fetch origin opencl12:opencl12
61
+ - git checkout opencl12
62
+ - ps : popd
59
63
# Rename the inc directory to include, so FindOpencl() will find it
60
64
- ps : ren inc include
61
65
- ps : popd
62
- - ps : popd
63
66
64
67
# before_build is used to run configure steps
65
68
before_build :
0 commit comments