I have installed the Intel® SDK for OpenCL* Applications XE 2013 R2 on Ubuntu and trying to run the "Platform/Device Capabilities Viewer Sample" program. However on compilation this is the error: CL/ch.h: No such file or directory.
I have added the installation directory (/opt/intel/opencl-1.2-184.108.40.20685/bin) to both $PATH and $LD_LIBRARY_PATH variables. I also edited the Makefile to include the path to: /opt/intel/opencl-1.2-220.127.116.1185/include. But the error still persists.
Any suggestions welcome.
Thanks for your response. I realized that the -l flag in the makefile should point to libOpenCL.so file in /opt/intel/opencl-1.2-18.104.22.16885/lib64 folder. So, adding the path to LD_LIBRARY_PATH variable cleared the compilation error. There was a run time error because it could not recognize the path to the intel.icd file. This post gives a solution to this problem - http://software.intel.com/en-us/forums/topic/390630.
Part of the sample program output is as follows:
CL_DEVICE_NAME: Intel(R) Core(TM) i3-4340 CPU @ 3.60GHz
Why doesn't it recognize the integrated graphics as the CL_DEVICE_TYPE_ACCELERATOR or CL_DEVICE_TYPE?
What is the difference between running an opencl program with - CL_DEVICE_TYPE_DEFAULT and CL_DEVICE_TYPE_CPU? I see a difference in real, user and sys time when running the same program but with different device types. The processor is an i3-4340 CPU with integrated graphics HD4600, with no other dedicated graphics card.