I need some information about running openCL programs on xeon or xeo phi. What to add to the makefile to be able to run program successfuly?
I know that i need to provide lOpenCL lib and path to the headers, but i do not know where they are, so compiler tells me that "CL/cl.h" cannot be found.
I am trying to run this program on Intel's xeon or xeon phi coprocessor.
You need to modify your include, lib environment variables to point to the include, lib opencl files. For example to find the cl.h add the path to the CL folder (excluding CL) to your include env variable.
I am aware of that, but where are the headers and libs on Intel's machines ? Can you post the part of makefile where you provide those paths ?
Example how i build with amd's openCL:
icpc -L/opt/AMDAPP/lib/x86_64/ -I/opt/AMDAPP/include -I/home/stevan/Desktop/openCLcode/includes src/main.cpp src/BitmapImporter.cpp -lOpenCL . This is ok, but at the moment, i don't have OpenSUSE of Red Hat to try Intel's openCL.