Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6404 Discussions

./demo_security_barrier_camera.sh -d GPU Problem.

Kulecz__Walter
New Contributor I
1,823 Views

OpenVINO build l_openvino_toolkit_p_2019.1.144 in Intel Atom x5-Z8350 running Ubuntu-Mate 16.04 with all the latest updates.  I'm happy to report that the issues I had with build 2019.1.133 now seem fixed.

Running ./demo_security_barrier_camera.sh -d CPU worked, got 7.65 fps, 8.67 fps inference.

But trying the GPU failed.

Ran to the very end, then failed with this error:

Run ./security_barrier_camera_demo -d GPU -d_va GPU -d_lpr GPU -i /home/ai/intel/openvino/deployment_tools/demo/car_1.bmp -m /home/ai/openvino_models/ir/FP32/Security/object_detection/barrier/0106/dldt/vehicle-license-plate-detection-barrier-0106.xml -m_va /home/ai/openvino_models/ir/FP32/Security/object_attributes/vehicle/resnet10_update_1/dldt/vehicle-attributes-recognition-barrier-0039.xml -m_lpr /home/ai/openvino_models/ir/FP32/Security/optical_character_recognition/license_plate/dldt/license-plate-recognition-barrier-0001.xml 

[ INFO ] InferenceEngine: 
	API version ............ 1.6
	Build .................. custom_releases/2019/R1.1_28dfbfdd28954c4dfd2f94403dd8dfc1f411038b
[ INFO ] Parsing input parameters
[ INFO ] Capturing video streams from the video files or loading images
[ INFO ] Files were added: 1
[ INFO ]     /home/ai/intel/openvino/deployment_tools/demo/car_1.bmp
[ INFO ] Number of input image files: 1
[ INFO ] Number of input video files: 0
[ INFO ] Number of input channels: 1
[ INFO ] Display resolution: 1920x1080
[ INFO ] Loading plugin GPU

	API version ............ 1.6
	Build .................. 23780
	Description ....... clDNNPlugin
[ INFO ] Loading network files for VehicleDetection
[ INFO ] Batch size is forced to  1
[ INFO ] Checking Vehicle Detection inputs
[ INFO ] Checking Vehicle Detection outputs
[ INFO ] Loading Vehicle Detection model to the GPU plugin
[ ERROR ] failed to create engine: clGetPlatformIDs error -1001
Error on or near line 228; exiting with status 1

Any ideas what has gone wrong?  I've zero experience with openCL.

 

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

> I assume the GPU module won't work with an NVidia openCL, correct?

Correct GPU path only works on Intel GPU.

BTW 

wget http://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_linux64.zip

works for me here.

For the Intel GPU + discrete gfx system please connect monitor to system DVI / HDMI port (so that Intel GPU is active) and try clinfo again.

Cheers,

nikos

 

View solution in original post

0 Kudos
23 Replies
Kulecz__Walter
New Contributor I
396 Views

nikos wrote:

Not sure how to solve this dependency without ssh in there :-)

Please take a lok at ./install_NEO_OCL_driver.sh

You could also try to install the latest runtime manually ( https://github.com/intel/compute-runtime/releases

something like

mkdir neo
cd neo
wget https://github.com/intel/compute-runtime/releases/download/19.22.13062/intel-gmmlib_19.1.1_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.22.13062/intel-igc-core_1.0.6-2018_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.22.13062/intel-igc-opencl_1.0.6-2018_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.22.13062/intel-opencl_19.22.13062_amd64.deb
wget https://github.com/intel/compute-runtime/releases/download/19.22.13062/intel-ocloc_19.22.13062_amd64.deb
sudo dpkg -i *.deb

Cheers,

nikos

 

How do you find all this stuff?

Thanks a million, I now have clinfo reporting two platforms, Python3 OpenCV still worked and the GPU plugin got me 36.02 fps and 49.4 fps inference.

What is scary is the CPU plugin on this i7-8750H gets 101 fps and 103 fps inference when lightly loaded (basically only the demo code and my ssh -X login), although it drops down to ~42 fps when loaded with my rtsp2mqtt converter, whereas the MYRIAD runs under this load were minimally impacted.

Thanks again for your timely solution!

 

0 Kudos
nikos1
Valued Contributor I
396 Views

ha ha

Glad to hear it works!

Cheers,

nikos

0 Kudos
Samayam_V_Intel
Employee
396 Views

Kulecz, Walter wrote:

If you don't mind, I've a new opencl issue on a different system.

I've installed 2019.1.144 on my i8750H Ubuntu-Mate 16.04 laptop.  All the CPU and MYRIAD tests went fast and smooth.

This system has Nvidia graphics hooked to a 4K display on the external hdmi port and the laptop 1920x1080 LCD panel.  I've the 4K as "primary" and the laptop display works or not depending on if its enabled or not in the Ubuntu-Mate "Display" tool.  The NVidia control panel only "sees" one display -- the 4K monitor.

When I try the ./install_NEO_OCL_driver.sh script (after sudo -E su)

# ./install_NEO_OCL_driver.sh
Intel OpenCL graphics driver installer
Looking for previously installed user-mode driver...
dpkg-query: no packages found matching intel-opencl
dpkg-query: no packages found matching intel-ocloc
dpkg-query: no packages found matching intel-gmmlib
Found intel-igc-core installed, uninstalling...
dpkg: dependency problems prevent removal of intel-igc-core:
 intel-igc-opencl depends on intel-igc-core.

dpkg: error processing package intel-igc-core (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 intel-igc-core
ERROR: unable to remove intel-igc-core
       please resolve it manually and try to launch the script again.

Results are the same with the laptop screen enabled or disabled.  I've no idea how to "resolve it manually"

 

I had planned to wipe the NVMe drive and install Linux, but it came with an Western Digital NVMe that the installer and the installed system just can't "see"  so it still has the Windows10 it came with.  So I just got a 1TB SATA SSD and installed Linux to that and moved on.  Someday I might try the OpenVINO install on Windows, but definitely not a priority as I got off the Windows bus at Windows 8.

 

 

Hi Kulecz, Walter,

I was also facing similar error so I removed the "intel-igc-core" manually using the command 

apt-get remove -y intel-igc-core

and then I ran the 

./install_NEO_OCL_driver.sh

then it started working

0 Kudos
Reply