Failed to create openvino inference engine on GPU-"failed to create engine: clGetPlatformIDs error -1001"

Failed to create openvino inference engine on GPU-"failed to create engine: clGetPlatformIDs error -1001"

Error is below:

command:  ~/dldt/inference-engine/bin/intel64/Release$ ./object_detection_sample_ssd -i ~/computer_vision_sdk_2018.3.343/deployment_tools/demo/car_1.bmp -m ~/dldt/model_optimizer/frozen_inference_graph.xml -d GPU

result:
[ INFO ] InferenceEngine:
        API version ............ 1.4
        Build .................. custom_2018_91160e65cf66e7fbc709245a8ba948a4c555e443
Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/computer_vision_sdk_2018.3.343/deployment_tools/demo/car_1.bmp
[ INFO ] Loading plugin

        API version ............ 1.4
        Build .................. custom_2018_91160e65cf66e7fbc709245a8ba948a4c555e443
        Description ....... clDNNPlugin
[ INFO ] Loading network files:
        /home/yuanjie/dldt/model_optimizer/frozen_inference_graph.xml
        /home/yuanjie/dldt/model_optimizer/frozen_inference_graph.bin
[ INFO ] Preparing input blobs
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the plugin
[ ERROR ] failed to create engine: clGetPlatformIDs error -1001

 

I have finished environment config according to https://software.intel.com/en-us/articles/OpenVINO-Install-Linux#gpu-steps and build according to steps in https://github.com/opencv/dldt/blob/2018/inference-engine/README.md.

I attach my GPU information and inference engine version in case you need

AttachmentSize
Downloadtext/plain GPU info and ie version.txt15.4 KB
12 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hello Yuanjie,

OpenVino needs an Intel GPU to run using the cldnn plug-in when -d GPU option is used. 

I think your CPU is a Xeon E5 and those do not have a GPU ( please refer to https://ark.intel.com/products/series/78583/Intel-Xeon-Processor-E5-v3-F... ) . If this is the case you cannot run using -d GPU or run inference using OpenVino on a discrete GPU.

You can still run with FP32 IR using the -d CPU parameter.

Cheers,

Nikos

Hi Nikos,

 Thank you very much! I will go on try. 

Best wishes, 

Yuanjie

Quote:

Nikos wrote:

Hello Yuanjie,

OpenVino needs an Intel GPU to run using the cldnn plug-in when -d GPU option is used. 

I think your CPU is a Xeon E5 and those do not have a GPU ( please refer to https://ark.intel.com/products/series/78583/Intel-Xeon-Processor-E5-v3-F... ) . If this is the case you cannot run using -d GPU or run inference using OpenVino on a discrete GPU.

You can still run with FP32 IR using the -d CPU parameter.

Cheers,

Nikos

Hi Nikos,

  I was wondering if there were suitable machine types that worked well for both "-d CPU" and "-d GPU" options according to your knowledge in this case. If so, I would like to check if out team have available machines. I appreciate your help.

Best wishes,

Yuanjie

Quote:

Ba, Yuanjie (Intel) wrote:

Quote:

Nikos wrote:

 

Hello Yuanjie,

OpenVino needs an Intel GPU to run using the cldnn plug-in when -d GPU option is used. 

I think your CPU is a Xeon E5 and those do not have a GPU ( please refer to https://ark.intel.com/products/series/78583/Intel-Xeon-Processor-E5-v3-F... ) . If this is the case you cannot run using -d GPU or run inference using OpenVino on a discrete GPU.

You can still run with FP32 IR using the -d CPU parameter.

Cheers,

Nikos

 

 

Hi Nikos,

  I was wondering if there were suitable machine types that worked well for both "-d CPU" and "-d GPU" options according to your knowledge in this case. If so, I would like to check if out team have available machines. I appreciate your help.

Best wishes,

Yuanjie

I tried intel core i5-7300U, it works fine with both CPU and  GPU

Quote:

Deng, Fucheng wrote:

Quote:

Ba, Yuanjie (Intel) wrote:

 

Quote:

Nikos wrote:

 

Hello Yuanjie,

OpenVino needs an Intel GPU to run using the cldnn plug-in when -d GPU option is used. 

I think your CPU is a Xeon E5 and those do not have a GPU ( please refer to https://ark.intel.com/products/series/78583/Intel-Xeon-Processor-E5-v3-F... ) . If this is the case you cannot run using -d GPU or run inference using OpenVino on a discrete GPU.

You can still run with FP32 IR using the -d CPU parameter.

Cheers,

Nikos

 

 

Hi Nikos,

  I was wondering if there were suitable machine types that worked well for both "-d CPU" and "-d GPU" options according to your knowledge in this case. If so, I would like to check if out team have available machines. I appreciate your help.

Best wishes,

Yuanjie

 

 

I tried intel core i5-7300U, it works fine with both CPU and  GPU

Thanks Fucheng,

I will check if our  team has this type. And if you know  other machine types available as well, please tell me, especially if any type of i7 works fine.

Best wishes,

Yuanjie

All recent Core CPUs and also Atom and Xeon E3V3/4/5 have GPUs  and should work fine.

If in doubt check your CPU model in the Intel ark tool

https://ark.intel.com/Search/FeatureFilter?productType=processors&Integr... 

Quote:

nikos wrote:

All recent Core CPUs and also Atom and Xeon E3V3/4/5 have GPUs  and should work fine.

If in doubt check your CPU model in the Intel ark tool

https://ark.intel.com/Search/FeatureFilter?productType=processors&Integr... 

Thanks Nikos!

I tried an "Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)". Unfortunately, my attempt showed the same result as above. I am not sure if there is anything wrong with my work. I want to find out how to solve.

Hello Yuanjie,

I think first step would be to make sure the OS can see the GPU and also OpenCL environment is properly installed.

What is the GPU device ID, is it in the clDNN device list?  What is the clinfo output?

If OpenCL cannot see the Intel GPU OpenCL device you cannot run with -d GPU (but -d CPU should work fine).

As the Xeon E3v3 CPU is a bit older the NEO driver may not work. You may need to try the legacy OpenCL driver as described in another post in this forum (search for Linux OpenCL installation). First you need to see a valid GPU OpenCL device when you run clinfo.

Cheers,

Nikos

Quote:

nikos wrote:

Hello Yuanjie,

I think first step would be to make sure the OS can see the GPU and also OpenCL environment is properly installed.

What is the GPU device ID, is it in the clDNN device list?  What is the clinfo output?

If OpenCL cannot see the Intel GPU OpenCL device you cannot run with -d GPU (but -d CPU should work fine).

As the Xeon E3v3 CPU is a bit older the NEO driver may not work. You may need to try the legacy OpenCL driver as described in another post in this forum (search for Linux OpenCL installation). First you need to see a valid GPU OpenCL device when you run clinfo.

Cheers,

Nikos

Hi Nikos,

Thanks to your help my previous problem has been solved !

I installed openCL 2012 (according to steps and the download link here: https://github.com/guruofquality/grex/wiki/OpenCL) and figured out clinfo output (the attachment). It began to show information about my GPU. Among the information I found the ' clGetPlatformInfo' function and regarding GPU info - I think the previous problem about this function had been solved in this way.

However, a new problem occurred - 'Segmentation fault (core dumped)'. The terminal output changes to:
[ INFO ] InferenceEngine:
        API version ............ 1.4
        Build .................. custom_2018_3600f36d7bb24e5193cbf6a3aaf98b085942a091
Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/computer_vision_sdk_2018.3.343/deployment_tools/demo/car_1.bmp
[ INFO ] Loading plugin

        API version ............ 1.4
        Build .................. custom_2018_3600f36d7bb24e5193cbf6a3aaf98b085942a091
        Description ....... clDNNPlugin
[ INFO ] Loading network files:
        /home/yuanjie/model_optimizer/frozen_inference_graph.xml
        /home/yuanjie/model_optimizer/frozen_inference_graph.bin
[ INFO ] Preparing input blobs
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the plugin
Segmentation fault (core dumped)

I am confused if the problem was caused by an earlier or older version of OpenCL. I have to struggle with a right legacy OpenCL driver. Sincerely I need your guidance again.

I attached my clinfo output. What's more, '-d GPU' fails while '-d CPU' works well. I attached the output as well. 

Thanks,

Yuanjie

 

Attachments: 

AttachmentSize
Downloadtext/plain clinfo output.txt9.4 KB

Hello Yuanjie,

There is an OpenCL installation issue. You clifno reports that we have a good OpenCL CPU device which is good but in our case we do not need it as -d CPU runs on MKLDNN and not using OpenCL CPU. 

What you really need for -d GPU is clinfo to report a valid OpenCL GPU device and this is not the case according to clinfo and also this line:

clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform

Let's try to install OpenCL for your GPU.  I think your CPU is Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz so it has an Intel® HD Graphics 4600 so in theory it should work if the proper OpenCL driver is installed.

What is the OS and kernel version?

Cheers,

Nikos 

Quote:

nikos wrote:

Hello Yuanjie,

There is an OpenCL installation issue. You clifno reports that we have a good OpenCL CPU device which is good but in our case we do not need it as -d CPU runs on MKLDNN and not using OpenCL CPU. 

What you really need for -d GPU is clinfo to report a valid OpenCL GPU device and this is not the case according to clinfo and also this line:

clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform

Let's try to install OpenCL for your GPU.  I think your CPU is Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz so it has an Intel® HD Graphics 4600 so in theory it should work if the proper OpenCL driver is installed.

What is the OS and kernel version?

Cheers,

Nikos 

Hi Nikos,

My kernel version is: 4.14.20-041420-generic. And my OS is Ubuntu 16.04.5 LTS.

I just found this link: https://software.intel.com/en-us/articles/opencl-drivers#graph-lin-ubuntu. It is OpenCL for GPUs on  Linux OS ubuntu 16.04.x.

Thanks,

Yuanjie

Leave a Comment

Please sign in to add a comment. Not a member? Join today