need help for beginner level.

need help for beginner level.

Hi, I installed the 64 bit openCl SDK 1.5 on my intel i5 processor system and I tried the offline compiler with the sample programs and it was showing errors such as:6:13: fatal error: 'CL/cl.h' file not foundPlease help me with this problem. I tried to refer every possible information but couldn't get much info about the openCL.

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


Intel OpenCL SDK Offline Compiler can be used to compile OpenCL code only, i.e. kernels contained in *.cl files. Please refer to section 5.2 of the Intel OpenCL SDK User's Guide or to article at
To build and run samples refer to section 4.3 of the guide.


Hi you are not including the opencl header files. After you install the SDK you need to set your include directories for your compiler to the directory for the header files. This is the same as using any library or source code from any other project.

As mentioned by Yuri the ".cl" files can be compiled by the offline compiler but but you still have to write c/c++ code to call load the compiled kernels.

If you are still a little lost here is a link which show you how to set up a couple of the different opencl vendors libraries for visual studio. Which it doesn't cover specifically Intel's version the process is the same just linking to the libraries for them. Also if you are looking for a more "one click" solution the source code for the Great book OpenCL Programming guide is avalible online for free. I believe it autoconfigures a visual studio project for you when you run a script in their source code. The source is avalible here:

Also the book OpenCL in Action is very good and easy to use with very simple examples if you are looking for a book. I can highly recommend this book for a beginner to OpenCL. I wish I have it three years ago.

Leave a Comment

Please sign in to add a comment. Not a member? Join today