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.

Cannot run Demo Scripts with GPU

Yang__Edward
Beginner
502 Views

OpenVINO version is 2018.2.300

OS Ubuntu 16.04.03

Platform Core i5-8400

====================================================

Just followed the Linux installation guide to setup my Openvino environment,

https://software.intel.com/en-us/arrticles/OpenVINO-Install-Linux

After performing the commands in the section of "Additional Installation Steps for Processor Graphics", I modified the demo script of "demo_security_barrier_camera.sh", replaced "CPU" with "GPU", then executed the script. The demo failed with the following messages:

###################################################

Run Inference Engine security_barrier_camera sample

Run ./security_barrier_camera_sample -d GPU -i /opt/intel/computer_vision_sdk_2018.2.300/deployment_tools/demo/../demo/car_1.bmp -m /opt/intel/computer_vision_sdk_2018.2.300/deployment_tools/demo/../intel_models/vehicle-license-plate-detection-barrier-0007/FP32/vehicle-license-plate-detection-barrier-0007.xml -m_va /opt/intel/computer_vision_sdk_2018.2.300/deployment_tools/demo/../intel_models/vehicle-attributes-recognition-barrier-0039/FP32/vehicle-attributes-recognition-barrier-0039.xml -m_lpr /opt/intel/computer_vision_sdk_2018.2.300/deployment_tools/demo/../intel_models/license-plate-recognition-barrier-0001/FP32/license-plate-recognition-barrier-0001.xml

InferenceEngine:
    API version ............ 1.1
    Build .................. 11653
[ INFO ] Parsing input parameters
[ INFO ] Reading input
[ INFO ] Loading plugin GPU

    API version ............ 1.1
    Build .................. ci-main-03703
    Description ....... clDNNPlugin
[ INFO ] Loading plugin CPU

    API version ............ 1.1
    Build .................. lnx_20180510
    Description ....... MKLDNNPlugin
[ 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 111; exiting with status 1

=====================================================================

I tried to run the demo of "" with GPU. Also failed with the same error

nferenceEngine:
    API version ............ 1.1
    Build .................. 11653
[ INFO ] Parsing input parameters
[ INFO ] Reading input
[ INFO ] Loading plugin GPU

    API version ............ 1.1
    Build .................. ci-main-03703
    Description ....... clDNNPlugin
[ INFO ] Loading plugin CPU

    API version ............ 1.1
    Build .................. lnx_20180510
    Description ....... MKLDNNPlugin
[ 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 111; exiting with status 1

========================================================

Please advise how to resolve this error. Thanks

Regards!

Edward

 

0 Kudos
4 Replies
Yang__Edward
Beginner
502 Views

This issue was resolved. Since the chipset is 8th generation Core i, we need to add:
   i915.alpha_support=1
to the 4.14 kernel command line. The GPU option worked well after I did that.

Regards!

Edward

 

 

0 Kudos
motansei
Beginner
502 Views

How did you add this "i915.alpha_support=1" command? I met the same problem, thanks!

Yang, Edward wrote:

 

This issue was resolved. Since the chipset is 8th generation Core i, we need to add:
   i915.alpha_support=1
to the 4.14 kernel command line. The GPU option worked well after I did that.

Regards!

Edward

 

 

 

0 Kudos
Monique_J_Intel
Employee
502 Views

Hi Edward,

To enable the i915 driver you need to append i915.alpha_support=1 to GRUB_CMDLINE_LINUX in /etc/default/grub and the run a sudo update-grub.

Kind Regards,

Monique Jones 

0 Kudos
rachel_r_Intel
Employee
502 Views

Hi

I encountered the same problem when I assigned the model to the "GPU".

We has found a solution to solve the problem:

[ ERROR ] failed to create engine: clGetPlatformIDs error -1001

Solution: Install OpenCl dependency

root@intel-desktop:/opt/intel/computer_vision_sdk/install_dependencies# ./install_NEO_OCL_driver.sh

Best Regards,

Rachel

0 Kudos
Reply