Skip to content

Commit a0968ce

Browse files
committed
[travis] Commented ci instructions to have opencl working
1 parent 6d58212 commit a0968ce

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

.travis.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,38 @@ before_install:
2828
sudo apt-get --yes install ocl-icd-opencl-dev;
2929
fi
3030
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then cat /System/Library/Frameworks/OpenCL.framework/Headers/cl.h | grep -i version; fi
31-
# - if [ ${TRAVIS_OS_NAME}= "osx" ]; then brew install gcc; fi
32-
# osx image does not contain cl.hpp file; download from Khronos
33-
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then
34-
pushd /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/;
35-
sudo wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
36-
popd;
37-
fi
38-
# The following linux logic is necessary because of Travis's move to the GCE platform, which does not
39-
# currently contain packages for fglrx: https://github.com/travis-ci/travis-ci/issues/5221
40-
# We build our own linkable .so file
41-
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then
42-
mkdir -p ${OPENCL_ROOT};
43-
pushd ${OPENCL_ROOT};
44-
travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git;
45-
mv ./OpenCL-ICD-Loader/* .;
46-
travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL;
47-
pushd inc/CL;
48-
travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
49-
popd;
50-
mkdir -p lib;
51-
pushd lib;
52-
cmake -G "Unix Makefiles" ..;
53-
make;
54-
cp ./bin/libOpenCL.so .;
55-
popd;
56-
pushd inc/CL;
57-
travis_retry git fetch origin opencl12:opencl12;
58-
git checkout opencl12;
59-
popd;
60-
mv inc/ include/;
61-
popd;
62-
fi
31+
## - if [ ${TRAVIS_OS_NAME}= "osx" ]; then brew install gcc; fi
32+
## osx image does not contain cl.hpp file; download from Khronos
33+
#- if [ ${TRAVIS_OS_NAME} == "osx" ]; then
34+
# pushd /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/;
35+
# sudo wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
36+
# popd;
37+
# fi
38+
## The following linux logic is necessary because of Travis's move to the GCE platform, which does not
39+
## currently contain packages for fglrx: https://github.com/travis-ci/travis-ci/issues/5221
40+
## We build our own linkable .so file
41+
#- if [ ${TRAVIS_OS_NAME} == "linux" ]; then
42+
# mkdir -p ${OPENCL_ROOT};
43+
# pushd ${OPENCL_ROOT};
44+
# travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git;
45+
# mv ./OpenCL-ICD-Loader/* .;
46+
# travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL;
47+
# pushd inc/CL;
48+
# travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
49+
# popd;
50+
# mkdir -p lib;
51+
# pushd lib;
52+
# cmake -G "Unix Makefiles" ..;
53+
# make;
54+
# cp ./bin/libOpenCL.so .;
55+
# popd;
56+
# pushd inc/CL;
57+
# travis_retry git fetch origin opencl12:opencl12;
58+
# git checkout opencl12;
59+
# popd;
60+
# mv inc/ include/;
61+
# popd;
62+
# fi
6363

6464
install:
6565
- pwd

0 commit comments

Comments
 (0)