0
votes

I have installed intel opencl sdk in windows 8. All the files are located as they have to according to user guide but whenever I am trying to compile any code it is showing error that Cl/cl.h not found. Also, the user manual says that application needs to be linked to the libraries , but that option is nowhere to be found in the IDE.

This is the error I am getting at console Setting target instruction set architecture to: Default (Advanced Vector Extension (AVX)) OpenCL Intel CPU device was found! Device name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz Device version: OpenCL 1.2 (Build 82248) Device vendor: Intel(R) Corporation Device profile: FULL_PROFILE Compilation started 1:2:9: fatal error: 'CL/cl.h' file not found Compilation failed

Build failed! Any help would be welcomed...Thanks

2

2 Answers

0
votes

I guess you have not configured your visual studio for OpenCL.

Check whether INTELOCLSDKROOT is got added in environment variable if not add it or else configure visual studio to find header file and openCL library files.

Configuring visual studio ->

    CL Header file 
    Properties -> All Configurations -> Configuration Properties-> C/C++ -> General -> Additional Include Directories -> SPECIFY_THE_PATH_OF_CL_INCLUDE_DIRECTORY

    Linking CL Library 
    Properties -> All Configurations -> Configuration Properties-> C/C++ -> Linker -> General -> Additional Dependencies ->SPECIFY_THE_PATH_OF_CL_LIBRARY_BASED_ON_64/32_BIT_MACHINE

    in linker -> input -> add OpenCL.lib
0
votes

you will need to install the OpenCL runtime, it is another file other than the SDK file

This is OpenCL runtime 64-bit link