Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Tu__Ming-Hsuan
Beginner
1,550 Views

Can't find opencl driver

Jump to solution

Hi,

I follow the instruction to install opencl driver (https://software.intel.com/en-us/articles/OpenVINO-Install-Linux#inpage-nav-4-1).

after the installation and reboot.

I tried the sample

./intel64/Release/classification_sample -i car.png -m ~/openvino_models/ir/squeezenet1.1/squeezenet1.1.xml -d GPU
[ INFO ] InferenceEngine: 
	API version ............ 1.2
	Build .................. 13911
[ INFO ] Parsing input parameters
[ INFO ] Loading plugin

	API version ............ 1.2
	Build .................. cldnn/GEN_GPU_clDNN_ci-main_cldnn-main-03988_artifacts.zip
	Description ....... clDNNPlugin
[ INFO ] Loading network files:
	/home/tumh/openvino_models/ir/squeezenet1.1/squeezenet1.1.xml
	/home/tumh/openvino_models/ir/squeezenet1.1/squeezenet1.1.bin
[ INFO ] Preparing input blobs
[ WARNING ] Image is resized from (787, 259) to (227, 227)
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the plugin
[ ERROR ] failed to create engine: clGetPlatformIDs error -1001

 

It seems that the opencl driver can't be found. and clinfo can't find any driver too.

So I check the installed package and got

ii  intel-opencl                                18.28.11080                                         amd64        Intel OpenCL GPU driver
ii  ocl-icd-libopencl1:amd64                    2.2.8-1                                             amd64        Generic OpenCL ICD Loader

I think the driver have been installed. But I have no idea why it can't be found.

Here is the result of running the script you provided (https://software.intel.com/en-us/articles/mss-sys-analyzer-linux)

--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz
--------------------------
OS readiness checks:
--------------------------
 [ OK ] GPU visible to OS
--------------------------
Media Server Studio Install:
--------------------------
 [ OK ] user in video group
 [ ERROR ] libva.so.1 not found.  Check LD_LIBRARY_PATH contains '/usr/lib64;/usr/local/lib'
 [ ERROR ] libva not loading Intel iHD
 [ ERROR ] vainfo not reporting codec entry points
 [ ERROR ] no libdrm include files. Are Intel components installed?
--------------------------
Component Smoke Tests:
--------------------------
 [ ERROR ] no libva.so.  Are Intel components installed?
In file included from /home/tumh/OpenCL-Headers/CL/cl.h:32:0,
                 from oclcheck_tmp.c:2:
/home/tumh/OpenCL-Headers/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
                                                                                                        ^
 [ OK ] OpenCL check:

clGetPlatformIDs returns -1001 and no devices are found.

Any idea?

0 Kudos
1 Solution
nikos1
Valued Contributor I
1,550 Views

You may want to try some other ways of installing OpenCL driver

http://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_intel-opencl-installation.pd...

that would depend on the kernel version.

What happens for example if you try

wget http://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_linux64.zip
unzip SRB5.0_linux64.zip -d SRB5.0_linux64
cd SRB5.0_linux64
sudo apt-get install xz-utils
mkdir intel-opencl
tar -C intel-opencl -Jxf intel-opencl-r5.0-63503.x86_64.tar.xz
tar -C intel-opencl -Jxf intel-opencl-devel-r5.0-63503.x86_64.tar.xz
tar -C intel-opencl -Jxf intel-opencl-cpu-r5.0-63503.x86_64.tar.xz
sudo cp -R intel-opencl/* /
sudo ldconfig

 

View solution in original post

8 Replies
nikos1
Valued Contributor I
1,550 Views

Looks like the OpenCL was not installed properly for the Intel GPU device. Could you please post the output of clinfo?  What is the OS and kernel version?  Any errors when you follow instructions in https://software.intel.com/en-us/articles/OpenVINO-Install-Linux#inpage-nav-4-1 ; ?

 

nikos1
Valued Contributor I
1,550 Views

Please also note specs of your 4th gen CPU

https://ark.intel.com/products/75459/Intel-Core-i5-4200U-Processor-3M-Cache-up-to-2-60-GHz-

And see OpenVino requirements

Graphics:

  • 6th to 8th generation Intel Core processor with Iris® Pro graphics and Intel HD Graphics
  • 6th to 8th generation Intel Xeon processor with Iris Pro graphics and Intel HD Graphics (excluding the e5 product family, which does not have graphics)

It could be tricky to get it to run on your HD 4400 GPU but it is possible. You may want to try on a more recent chip or try the CPU device.

nikos1
Valued Contributor I
1,551 Views

You may want to try some other ways of installing OpenCL driver

http://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_intel-opencl-installation.pd...

that would depend on the kernel version.

What happens for example if you try

wget http://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_linux64.zip
unzip SRB5.0_linux64.zip -d SRB5.0_linux64
cd SRB5.0_linux64
sudo apt-get install xz-utils
mkdir intel-opencl
tar -C intel-opencl -Jxf intel-opencl-r5.0-63503.x86_64.tar.xz
tar -C intel-opencl -Jxf intel-opencl-devel-r5.0-63503.x86_64.tar.xz
tar -C intel-opencl -Jxf intel-opencl-cpu-r5.0-63503.x86_64.tar.xz
sudo cp -R intel-opencl/* /
sudo ldconfig

 

View solution in original post

Tu__Ming-Hsuan
Beginner
1,550 Views

@Nikos,

clinfo returns nothing, no platform info shows up.

There are no erros when following the instructions (https://software.intel.com/en-us/articles/OpenVINO-Install-Linux#inpage-nav-4-1).

And the kernel version is updated to 4.14, and My OS is ubuntu 16.04

I also added i915.alpha_support=1 in the grub since my intel i5 cpu codename is Haswell, but still not worked.

And in fact, I have tried to install SRB4.1_linux64 in order to install clcaffe (https://github.com/01org/caffe/wiki/clCaffe), and Everything works as expected. what is the difference between SRB5.0_linux64 and the opencl driver provided by openvino tookkit?

By the way, how to determine the generation number? It's determined by the name "4"200U?

 

 

Tu__Ming-Hsuan
Beginner
1,550 Views

@Nikos,

I tried  SRB5.0_linux64.zip  and it works.

However, what is the difference between SRB5.0_linux64.zip and intel-opencl.deb from OpencVino?

nikos1
Valued Contributor I
1,550 Views

Hello Ming-Hsuan,

I tried  SRB5.0_linux64.zip  and it works.

Good news! 

> However, what is the difference between SRB5.0_linux64.zip and intel-opencl.deb from OpencVino?

I think the OpenVino NEO driver is meant for more recent chipsets. It comes from https://github.com/intel/compute-runtime and according to the Supported platforms section is for Gen8 / Gen9 platforms.

Cheers,

Nikos

Tu__Ming-Hsuan
Beginner
1,550 Views

@Nikos,

In fact, I have tried another laptop (Intel Core i7 (7th Gen) 7820HK / 2.9 GHz), and still have same issues with the driver come from OpenVino. And everything is fine with SRB5.0.

But it's definitely meet  the openvino requirement (6th to 8th generation Intel Core and Intel Xeon processors). So I have no idea why it's not compatible with openvino driver, any idea?

By the way, is it ok to use SRB5.0 with openvino? Do we miss any feature if not using the driver suggested from openvino?

 

 

nikos1
Valued Contributor I
1,550 Views

By the way, is it ok to use SRB5.0 with openvino? Do we miss any feature if not using the driver suggested from openvino?

I believe it is fine. Not sure about missing features. From my experience it works fine in older GPUs that we cannot install the NEO driver. If it works well in your application and can pass your unit tests it is good :-)

Reply