Skip to content

Commit 1f63b34

Browse files
committedFeb 27, 2016
Update .travis.yml and appveyor.yml
OpenCL headers were moved to github
1 parent af30f4c commit 1f63b34

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed
 

‎.travis.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,21 @@ install:
113113
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then
114114
mkdir -p ${OPENCL_ROOT};
115115
pushd ${OPENCL_ROOT};
116-
wget ${OPENCL_REGISTRY}/specs/opencl-icd-1.2.11.0.tgz;
117-
tar -xf opencl-icd-1.2.11.0.tgz;
118-
mv ./icd/* .;
119-
mkdir -p inc/CL;
116+
travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git;
117+
mv ./OpenCL-ICD-Loader/* .;
118+
travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL;
120119
pushd inc/CL;
121-
wget -r -w 1 -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/1.2/;
122-
wget -w 1 -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/2.1/cl.hpp;
120+
travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
123121
popd;
124122
mkdir -p lib;
125123
pushd lib;
126124
cmake -G "Unix Makefiles" ..;
127125
make;
128-
cp ../bin/libOpenCL.so .;
126+
cp ./bin/libOpenCL.so .;
127+
popd;
128+
pushd inc/CL;
129+
travis_retry git fetch origin opencl12:opencl12;
130+
git checkout opencl12;
129131
popd;
130132
mv inc/ include/;
131133
popd;

‎appveyor.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,29 @@ install:
4040
- ps: mkdir $env:OPENCL_ROOT
4141
- ps: pushd $env:OPENCL_ROOT
4242
- 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/* .
4846
# This downloads all the opencl header files
4947
# The cmake build files expect a directory called inc
5048
- 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
5251
# - ps: dir; if( $lastexitcode -eq 0 ){ dir include/CL } else { Write-Output boom }
5352
# Create the static import lib in a directory called lib, so findopencl() will find it
5453
- ps: mkdir lib
5554
- ps: pushd lib
5655
- cmake -G "NMake Makefiles" ..
5756
- nmake
5857
- 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
5963
# Rename the inc directory to include, so FindOpencl() will find it
6064
- ps: ren inc include
6165
- ps: popd
62-
- ps: popd
6366

6467
# before_build is used to run configure steps
6568
before_build:

0 commit comments

Comments
 (0)
Please sign in to comment.