Skip to content

Instantly share code, notes, and snippets.

@chichunchen
Created December 9, 2014 15:44
Show Gist options
  • Save chichunchen/bef452b5a2d99df960a1 to your computer and use it in GitHub Desktop.
Save chichunchen/bef452b5a2d99df960a1 to your computer and use it in GitHub Desktop.
OpenCL
Re: How to compile OpenCL example in GCC?
Precisely, the kernel compilation in OpenCL is make in running time (library call).
In Gcc, for compilation, you only need the headers (aviables on Kronos site). But for linkage, you have to install OpenCL compatible driver.
in the Makefile :
for Mac OSX : -framework OpenCL
for Linux : -lOpenCL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment