From bbfeec71b04c5e9ff9b6d4b3b9c269b55365ff44 Mon Sep 17 00:00:00 2001 From: Bragadeesh Natarajan Date: Tue, 18 Jul 2017 14:43:36 -0500 Subject: [PATCH] fixing appveyor & travis that failed due to opencl repo changes --- .travis.yml | 15 ++++++++------- appveyor.yml | 16 +++++++++++----- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 21947999..77488835 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml index 57256a99..3c0b7eef 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 @@ -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