Skip to content

Instantly share code, notes, and snippets.

@velenux
Created February 11, 2012 21:01
Show Gist options
  • Save velenux/1804190 to your computer and use it in GitHub Desktop.
Save velenux/1804190 to your computer and use it in GitHub Desktop.
Download OpenCL headers
#!/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
@tzutalin
Copy link

tzutalin commented May 6, 2016

Hi,
Khrones changes its download address....

I fork yours to change the address : https://gist.github.com/tzutalin/abb33fa21ca24315595556fd4104d1bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment