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

MKLDNNPlugin loading error in Deep learning tool

Hi, 
 
when I run classification_sample.exe (deep learning tool sample) in "Windows"
 
[bin\intel64\Release>classification_sample.exe -i D:\tttt\cat.bmp -m D:\tttt\AlexNet.xml -d CPU -ni 20]
 
I faced this error
 
===================================================
[ ERROR ] Cannot find plugin to use :Tried load plugin : MKLDNNPlugin,  error: Plugin MKLDNNPlugin cannot be loaded: cannot load plugin: MKLDNNPlugin from : Cannot load library 'MKLDNNPlugin.dll': 126, skipping
cannot load plugin: MKLDNNPlugin from : Cannot load library 'MKLDNNPlugin.dll': 126, skipping
cannot load plugin: MKLDNNPlugin from : Cannot load library 'MKLDNNPlugin.dll': 126, skipping
===================================================
 
 
however, "MKLDNNPlugin.dll" is in the same folder
 
how to solve this error??  thx!
 
 
 
 
 
0 Kudos
7 Replies
Highlighted
Employee
210 Views

Hi,

Please try to copy MKLDNNPlugin.dll to inference_engine\lib\intel64 

0 Kudos
Highlighted
Beginner
210 Views

Hi,

I run it on "Windows"

so there are no folder "inference_engine"

instead, I also put "MKLDNNPlugin.dll"  in  "\Intel\DeepLearning-DeploymentToolkit_1.0.5852\lib\intel64"

but it still doesn't work.

0 Kudos
Highlighted
Employee
210 Views

LEE, CHIHWEI - did you update your Windows Path variable with the exact directory containing your DLL ? After you do so, log out of Windows then log back in. Try again.

0 Kudos
Highlighted
210 Views

CHIWEI,

Probably, you are using CVSDK R3.

"inference_engine" is new folder name in later version of CVSDK.

Please copy "MKLDNNPlugin.dll" in sample folder of "inference_engine.dll" and check whether that folder is added in "PATH" of system variables.

 

Regards,

Peter.

0 Kudos
Highlighted
Beginner
210 Views

Hi, I met the same error on a publish thin client computer(Windows 10 LTSB, Build 14393.rs1_release_sec.180305-1842), which is our company's product using intel cpu. But it's working well in my development PC(Windows 10 LTSB, Build 14393.rs1_release_sec.170427-1353), so I think it may be due to the dependency library.

I use OpenVINO 2018 r2, and  this issue occured when I use opinion "-d CPU", and the opinion "-d GPU" is work well.

>object_detection_demo_ssd_async.exe -i cam -m C:\Users\Administrator\Desktop\ssd_inceptionv2\frozen_inference_graph.xml -d CPU -pc -r
InferenceEngine:
        API version ............ 1.1
        Build .................. 11653
[ INFO ] Parsing input parameters
[ INFO ] Reading input
[ INFO ] Loading plugin
[ ERROR ] Cannot find plugin to use :Tried load plugin : MKLDNNPlugin,  error: Plugin MKLDNNPlugin cannot be loaded: cannot load plugin: MKLDNNPlugin from .: Cannot load library '.\MKLDNNPlugin.dll': 126 from cwd: D:\Release, skipping
cannot load plugin: MKLDNNPlugin from : Cannot load library 'MKLDNNPlugin.dll': 126 from cwd: D:\Release, skipping

Thanks a lot for anyone can help me. 

0 Kudos
Highlighted
Beginner
210 Views

I have same problem and try this ok


windows

system environment variables in control panel
PATH add
C:\PROGRA~2\INTELS~1\OPENVI~1.275\INFERE~1\bin\intel64\Release;C:\PROGRA~2\INTELS~1\OPENVI~1.275\opencv\bin
PYTHONPATH add
C:\PROGRA~2\INTELS~1\OPENVI~1.275\python\python3.5;C:\PROGRA~2\INTELS~1\OPENVI~1.275\python\python3

linux

LD_LIBRARY_PATH=/usr/local/lib/python3.5/dist-packages/cv2/.libs:/opt/intel/openvino_2019.2.275/inference_engine/lib/intel64:/opt/intel/openvino_2019.2.275/inference_engine/external/mkltiny_lnx/lib:/opt/intel/openvino_2019.2.275/deployment_tools/inference_engine/external/tbb/lib

0 Kudos
Highlighted
Employee
210 Views

Dear everyone, to solve these "dll not found" errors, you need these tools:

Dependency Walker for Windows

or 

ldd on Linux

So as a first sanity step, the reasons DLLs can't be found is possibly a dll or lib which it depends on can't be found.

Also, as stone, jesse mentioned, some PATH environment variables need to be updated (and LD_LIBRARY_PATH on Linux as well). 

It is also important (on both Linux and Windows) to set INTEL_OPENVINO_DIR and OpenCV_DIR (please see the setupvars.bat or *.sh)

Hope it helps,

Shubha

 

0 Kudos