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.
1663 Discussions

What things should be done to compile and run an opencl CPU-GPU application in Ubuntu?

Hamid_Reza_K_
Beginner
171 Views

Hi all,

I intend to compile and run a simple OpenCL application in Ubuntu 15.04 (x86_64). The application has been written by C programming language. I have compiled the application by GCC on a PC consists of an Intel dual core and an Intel graphic card. But there is a problem with #include "CL/cl.h". Could you tell me what packages should be installed in Ubuntu and where the packages should be downloaded?

Regards,

 

0 Kudos
1 Reply
Robert_I_Intel
Employee
171 Views

Hi Hamid Reza,

First, make sure that you have an OpenCL driver installed. For that you will need to download and install Media Server Studio for Linux and follow the following instructions:

https://software.intel.com/sites/default/files/managed/25/22/media_server_studio_getting_started_gui...

After that download the appropriate samples here:

https://software.intel.com/en-us/intel-media-server-studio-support/code-samples

Make sure you can build and run the following sample:

OpenCL Video Motion Estimation Sample

There is also a standalone version of Intel(R) OpenCL Code Builder here https://software.intel.com/en-us/articles/intel-code-builder-for-opencl-api , but I am not aware of any samples for the standalone version.

 

Reply