OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1722 Discussions

Compiling and running openCL app. on XEON and XEON PHI

Stevan_Medić
Beginner
678 Views

Hello everyone,

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.

Thank you,

Stevan

0 Kudos
2 Replies
Raghupathi_M_Intel
678 Views

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.

Raghu

0 Kudos
Stevan_Medić
Beginner
678 Views

Hello Raghu,

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.

Regards,

Stevan

0 Kudos
Reply