Created
February 11, 2012 21:01
-
-
Save velenux/1804190 to your computer and use it in GitHub Desktop.
Download OpenCL headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# based on http://www.streamcomputing.eu/blog/2011-06-24/install-opencl-on-debianubuntu-orderly/ | |
DIR=/usr/include/ | |
for VERSION in 1.1 1.2; do | |
echo "Downloading headers for version ${VERSION}..." | |
mkdir -p "${DIR}/CL-${VERSION}" | |
cd "${DIR}/CL-${VERSION}" | |
wget -q http://www.khronos.org/registry/cl/api/${VERSION}/cl_d3d10.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl_d3d11.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl_dx9_media_sharing.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl_ext.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl_gl_ext.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl_gl.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl_platform.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/opencl.h \ | |
http://www.khronos.org/registry/cl/api/${VERSION}/cl.hpp | |
done | |
echo "Linking to OpenCL 1.1..." | |
cd ${DIR} | |
ln -s CL-1.1 CL | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Khrones changes its download address....
I fork yours to change the address : https://gist.github.com/tzutalin/abb33fa21ca24315595556fd4104d1bf