Skip to content

Commit

Permalink
fixing appveyor & travis that failed due to opencl repo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bragadeesh committed Jul 18, 2017
1 parent 0f8fe79 commit bbfeec7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,22 @@ install:
pushd ${OPENCL_ROOT};
travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git;
mv ./OpenCL-ICD-Loader/* .;
travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL;
pushd inc/CL;
travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL_headers_repo;
pushd inc;
mkdir CL;
cp CL_headers_repo/opencl22/CL/* CL/;
popd;
mkdir -p lib;
pushd lib;
cmake -G "Unix Makefiles" ..;
make;
sudo cp ./bin/libOpenCL.so /usr/local/lib;
sudo cp ./lib/libOpenCL.so /usr/local/lib;
popd;
pushd inc/CL;
travis_retry git fetch origin opencl12:opencl12;
git checkout opencl12;
rm -rf *;
cp -r ../CL_headers_repo/opencl12/CL/* .;
popd;
sudo cp -r inc/* /usr/local/include;
sudo cp -r inc/CL /usr/local/include/;
popd;
fi

Expand Down
16 changes: 11 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ install:
- ps: mv ./OpenCL-ICD-Loader/* .
# This downloads all the opencl header files
# The cmake build files expect a directory called inc
- ps: mkdir inc/CL
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL
- ps: wget $opencl_registry/api/2.1/cl.hpp -OutFile inc/CL/cl.hpp
- ps: mkdir inc/CL_headers_repo
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL_headers_repo
- ps: pushd inc
- ps: mkdir CL
- ps: cp CL_headers_repo/opencl22/CL/* CL/
- ps: popd
# - ps: wget $opencl_registry/api/2.1/cl.hpp -OutFile inc/CL/cl.hpp
# - ps: dir; if( $lastexitcode -eq 0 ){ dir include/CL } else { Write-Output boom }
# Create the static import lib in a directory called lib, so findopencl() will find it
- ps: mkdir lib
Expand All @@ -58,8 +62,10 @@ install:
- ps: popd
# Switch to OpenCL 1.2 headers
- ps: pushd inc/CL
- git fetch origin opencl12:opencl12
- git checkout opencl12
- ps: del *
- ps: cp -r ../CL_headers_repo/opencl12/CL/* .
# - git fetch origin opencl12:opencl12
# - git checkout opencl12
- ps: popd
# Rename the inc directory to include, so FindOpencl() will find it
- ps: ren inc include
Expand Down

0 comments on commit bbfeec7

Please sign in to comment.