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

[intel opencl SDK]How do I know I installed successfully?

xx_y_
Beginner
1,923 Views

Hi,

I downloaded the latest intel_sdk_for_opencl for Ubuntu(16.04), and I ran the install.sh. No warnings or errors.

Then how do I know I installed correctly? I was hoping there were some c++ sample codes I could directly compile and run in the terminal, but the sample code pages seem to provide segments of code instead of the whole cpp files...

Thanks for any feedback.

Nico

0 Kudos
4 Replies
Jeffrey_M_Intel1
Employee
1,923 Views

If you haven't already, you will need to install a driver package first. https://software.intel.com/en-us/articles/opencl-drivers

For Ubuntu 16.04, your options are one of the Linux standalone releases or a generic install of Media Server Studio community edition.

There is a system analyzer you can use to check if OpenCL components are working correctly: https://software.intel.com/en-us/articles/mss-sys-analyzer-linux

The Linux samples package here has code you can compile and test. There are more examples in the article/example list here: https://software.intel.com/en-us/forums/opencl/topic/706888

 

Ben_A_Intel
Employee
1,923 Views

It's not an Intel tool, but for Linux I like to check that everything is working by using "clinfo".  It's a simple utility that enumerates the installed OpenCL platforms and devices on your system.

On Ubuntu you can install it with: sudo apt-get install clinfo

Or, you can get the source code here: https://github.com/Oblomov/clinfo

SergeyKostrov
Valued Contributor II
1,923 Views
>>...On Ubuntu you can install it with: sudo apt-get install clinfo Thanks, Ben. I simply would like to mention that it is recommended to execute sudo apt-get update first, and then sudo apt-get install clinfo.
SergeyKostrov
Valued Contributor II
1,923 Views
>>...The Linux samples package here has code you can compile and test. I think four Sticky Threads of the forum need to be updated and developers are asking questions because some things are not clearly explained. I understand that it is not possible to explain, or describe, everything absolutely clearly and that is why updating these Sticky Threads is a good thing. I would personally re-structured installation topics as follows: *** Installation on Windows *** - GPU / CPU ... - GPU only ... - CPU only ... *** Installation on Linux Ubuntu *** - GPU / CPU ... - GPU only ... - CPU only ... *** Installation on Linux Red Hat *** - GPU / CPU ... - GPU only ... - CPU only .. etc. *** List of Articles related to Intel SDK for OpenCL *** ... *** FAQ related to Intel SDK for OpenCL *** ... I've read these Sticky Threads several times and I see that some parts of your instructions could be consolidated and improved.
Reply