File tree Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -110,21 +110,22 @@ install:
110110 pushd ${OPENCL_ROOT};
111111 travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git;
112112 mv ./OpenCL-ICD-Loader/* .;
113- travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL;
114- pushd inc/CL;
115- travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
113+ travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL_headers_repo;
114+ pushd inc;
115+ mkdir CL;
116+ cp CL_headers_repo/opencl22/CL/* CL/;
116117 popd;
117118 mkdir -p lib;
118119 pushd lib;
119120 cmake -G "Unix Makefiles" ..;
120121 make;
121- sudo cp ./bin /libOpenCL.so /usr/local/lib;
122+ sudo cp ./lib /libOpenCL.so /usr/local/lib;
122123 popd;
123124 pushd inc/CL;
124- travis_retry git fetch origin opencl12:opencl12 ;
125- git checkout opencl12;
125+ rm -rf * ;
126+ cp -r ../CL_headers_repo/ opencl12/CL/* . ;
126127 popd;
127- sudo cp -r inc/* /usr/local/include;
128+ sudo cp -r inc/CL /usr/local/include/ ;
128129 popd;
129130 fi
130131
Original file line number Diff line number Diff line change @@ -45,9 +45,13 @@ install:
4545 - ps : mv ./OpenCL-ICD-Loader/* .
4646 # This downloads all the opencl header files
4747 # The cmake build files expect a directory called inc
48- - ps : mkdir 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
48+ - ps : mkdir inc/CL_headers_repo
49+ - git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL_headers_repo
50+ - ps : pushd inc
51+ - ps : mkdir CL
52+ - ps : cp CL_headers_repo/opencl22/CL/* CL/
53+ - ps : popd
54+ # - ps: wget $opencl_registry/api/2.1/cl.hpp -OutFile inc/CL/cl.hpp
5155 # - ps: dir; if( $lastexitcode -eq 0 ){ dir include/CL } else { Write-Output boom }
5256 # Create the static import lib in a directory called lib, so findopencl() will find it
5357 - ps : mkdir lib
@@ -58,8 +62,10 @@ install:
5862 - ps : popd
5963 # Switch to OpenCL 1.2 headers
6064 - ps : pushd inc/CL
61- - git fetch origin opencl12:opencl12
62- - git checkout opencl12
65+ - ps : del *
66+ - ps : cp -r ../CL_headers_repo/opencl12/CL/* .
67+ # - git fetch origin opencl12:opencl12
68+ # - git checkout opencl12
6369 - ps : popd
6470 # Rename the inc directory to include, so FindOpencl() will find it
6571 - ps : ren inc include
You can’t perform that action at this time.
0 commit comments