- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings everyone,
I am developing a bit of code to enable an integration of OpenVINO with an existing shipping application using that application's extension mechanism in Windows 10 using OpenVINO R3 (3.343)
I am able to compile and link the above-mentioned extension with OpenVINO and thus far able to "twiddle" OpenVINO from within the app. However, when I attempt to load either MKLDNN or clDNN in the dispatcher I get exceptions to the effect that neither device plugin can be loaded. I followed the recipe in the samples for getting the dispatcher to load and have chosen an explicit path load from ... only to see that it fails.
The following is the bit of code I am using.
void FP_OpenVINO::start() { std::string deviceName("CPU"); try { m_state.plugin = InferenceEngine::PluginDispatcher({ "C:\\Intel\\computer_vision_sdk_2018.3.343\\deployment_tools\\inference_engine\\bin\\intel64\\Release", ""}).getPluginByDevice(deviceName); } catch (std::exception &ex) { PrintToListener(const_cast<char*>(ex.what())); } }
If anyone would be so kind as to highlighting what I might be doing wrong in this instance I would like to hear from you as soon as possible.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Had similar issues when I started integration into our applications. Make sure all OpenVino dlls are in your current directory. The debugger will tell you where the issue is if you step into getPluginByDevice. In our case also had to copy the following dlls to project / product directory
inference_engine.dll
cpu_extension.dll
cpu_extension_avx2.dll
mkl_tiny.dll
MKLDNNPlugin.dll
myriadPlugin.dll
HeteroPlugin.dll
clDNNPlugin.dll
GNAPlugin.dll
gna.dll
clDNN64.dll
libiomp5md.dll
svml_dispmd.dll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nikos -
Per your recommendation I copied the DLLs in various directories - e.g. application dir, extension DLLs dir - as well as other directories in my %PATH% but to no avail.
The messages I receive consistently from the debugger when I walk into getPluginByDevice is that, for example, MKLDNNPlugin.dll cannot be loaded because it cannot be found.
If you or anyone might be able to shed some light on this please let me know.
Regards,
RudyC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi RudyC,
Which kind of CPU you used to run the app?
I once had similar issue when I run sample on 2nd-gen Core i5 CPU, OpenVINO is only available for 6th-gen (or newer) CPUs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ives,
My cpu is a Intel Core i5-8350U CPU @ 1.70GHz. I do not figure my cpu is an issue as on this same laptop I've been able to run other OpenVINO samples and tutorials.
Regards,
RudyC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rudy download Visual Studio 2017 Community Edition with all the requisite build tools first. I assume you have already done this ? Here is a link describing the steps:
https://software.intel.com/en-us/articles/OpenVINO-Install-Windows#VisualStudio-Application
Next, from a DOS Shell run :<INSTALL_DIR>\computer_vision_sdk_2018.3.343\bin\setupvars.bat
Create the Visual Studio Project and Solution Files first by running create_msvc2017_solution.bat from within inference_engine/samples.
Pull up the generated Samples.sln from build_2017 into Visual Studio 2017 and select "Build Solution" - build all the samples at once.
Now running the samples from within Visual Studio won't work straight away.
You must ensure that Visual Studio 2017 sees the environment variables which are set via
<INSTALL_DIR>/computer_vision_sdk_2018.3.343\bin\setupvars.bat
How do you do this ?
Open up x64 Native Tools Command Prompt for VS 2017
Then cd into the above directory and run setupvars.bat.
Next you bring up Visual Studio from within the command prompt by typing devenv /UseEnv
If you follow the above steps, your app (as well as the OpenVino samples) should see any required DLLs from OpenVino.
Hope these steps help you !
Thank you for using OpenVino,
Shubha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I advised Rudy that in addition to following the previous steps for running a sample app from within Visual Studio 2017, also as opposed to building an OpenVino app from scratch, it's better to rather start from an OpenVino sample, make sure it runs from within Visual Studio, and then incrementally add/delete functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RudyC did you solve this? What was the issue?
I am getting a similar issue on Linux when I load by Device but I can load plug-in by Name
InferenceEngine::PluginDispatcher({ "","./lib" }).getPluginByName("MKLDNNPlugin");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
.so lib path
[Environment Variables]
add
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page