Unable to run CVSDK classification sample

Unable to run CVSDK classification sample

 

Unable to run cvsdk samples on Intel with -d CPU option.

Already setup the environment but MKL fails. This system also has external GPU. 

Cannot find plugin to use :Tried load plugin : MKLDNNPlugin,  error: Plugin MKLDNNPlugin cannot be loaded: cannot load plugin: MKLDNNPlugin from ./: Cannot load library './/libMKLDNNPlugin.so': .//libMKLDNNPlugin.so: cannot open shared object file: No such file or directory, skipping
cannot load plugin: MKLDNNPlugin from ./lib: Cannot load library './lib/libMKLDNNPlugin.so': ./lib/libMKLDNNPlugin.so: cannot open shared object file: No such file or directory, skipping
cannot load plugin: MKLDNNPlugin from ../../../lib/ubuntu_16.04/intel64: Cannot load library '../../../lib/ubuntu_16.04/intel64/libMKLDNNPlugin.so': libiomp5.so: cannot open shared object file: No such file or directory, skipping
cannot load plugin: MKLDNNPlugin from : Cannot load library 'libMKLDNNPlugin.so': libiomp5.so: cannot open shared object file: No such file or directory, skipping

Tried load plugin : OpenVXPlugin,  error: Plugin OpenVXPlugin cannot be loaded: cannot load plugin: OpenVXPlugin from ./: Cannot load library './/libOpenVXPlugin.so': .//libOpenVXPlugin.so: cannot open shared object file: No such file or directory, skipping
cannot load plugin: OpenVXPlugin from ./lib: Cannot load library './lib/libOpenVXPlugin.so': ./lib/libOpenVXPlugin.so: cannot open shared object file: No such file or directory, skipping
cannot load plugin: OpenVXPlugin from ../../../lib/ubuntu_16.04/intel64: Cannot load library '../../../lib/ubuntu_16.04/intel64/libOpenVXPlugin.so': ../../../lib/ubuntu_16.04/intel64/libOpenVXPlugin.so: cannot open shared object file: No such file or directory, skipping
cannot load plugin: OpenVXPlugin from : Cannot load library 'libOpenVXPlugin.so': libOpenVXPlugin.so: cannot open shared object file: No such file or directory, skipping

7 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

You may need to edit the LD_LIBRARY_PATH in /opt/intel/computer_vision_sdk_2017.0.113/bin/setupvars.sh

from

export LD_LIBRARY_PATH=$INSTALLDIR/inference_engine/external/cldnn/lib:$INSTALLDIR/inference_engi ne/external/mklml_lnx/lib:$LD_LIBRARY_PATH

to

export LD_LIBRARY_PATH=$INSTALLDIR/inference_engine/lib/ubuntu_16.04/intel 64:$INSTALLDIR/inference_engine/external/cldnn/lib:$INSTALLDIR/inference_engi ne/external/mklml_lnx/lib:$LD_LIBRARY_PATH

The default location for the MKLDNN plugin your application needs to load is $INSTALLDIR/inference_engine/lib/ubuntu_16.04/intel64 directory

$ ls $INSTALLDIR/inference_engine/lib/ubuntu_16.04/intel64
libclDNNPlugin.so  libinference_engine.so  libMKLDNNPlugin.so

 

if you type

$ source /opt/intel/computer_vision_sdk_2017.0.113/bin/setupvars.sh

 

with the modified setupvars.sh before running the example it should set all of the paths and environment variables you need.

I was able to solve the issue but stuck again loading xml file.

Same xml/bin files I'm using on Windows. 

 

/opt/intel/computer_vision_sdk_2017.0.113/inference_engine/bin/intel64/Release$ ./classification_sample -i /home/cvsdk/image/ -m /home/cvsdk/resnet -d CPU
InferenceEngine:
        API version ............ 1.0
        Build .................. 4463
[INFO] Add file  tiger.bmp from directory /home/cvsdk/image/.
****

        API version ............ 1.0
        Build .................. lnx_2018.0.20170425
        Description ....... MKLDnnPlugin
Error loading xmlfile: /home/cvsdk/resnet, Could not allocate memory at offset 0

Is /home/cvsdk/resnet the .xml file or the directory where it is found?  I see output like this when only the directory is supplied.

 

 

Works fine now :) 

 

Thanks

I am also having the same issue, and have tried the solution you suggested of editing the LD_LIBRARY_PATH.

The error I get is:

 /usr/bin/ld: warning: libinference_engine.so, needed by /opt/intel/computer_vision_sdk_2018.2.319/opencv/lib/libopencv_dnn.so.3.4.2, not found (try using -rpath or -rpath-link)

I confirmed that $INSTALLDIR/inference_engine/lib/ubuntu_16.04/intel 64 is in my LD_LIBRARY_PATH.

Can you please advise what to try? 

Thanks

 

I fixed the above issue, I was running make for the samples as sudo, so the LD_LIBRARY_PATH was different.
To fix the issue I set an alias for the path when running as sudo

Leave a Comment

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