Created
December 9, 2014 15:44
-
-
Save chichunchen/bef452b5a2d99df960a1 to your computer and use it in GitHub Desktop.
OpenCL
This file contains hidden or 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
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