Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
563 Views

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

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
Highlighted
563 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

 

0 Kudos
Highlighted
Employee
563 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

0 Kudos
Highlighted
Valued Contributor II
563 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.
0 Kudos
Highlighted
Valued Contributor II
563 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.
0 Kudos