Merge pull request #14252 from balachandarsv:master-mac-openvino-support

* Mac support for op inference engine

Adding condition to check for mac and add corresponding libraries

* Adding mac support in test cases
This commit is contained in:
BALACHANDAR S 2019-04-04 20:07:45 +05:30 committed by Alexander Alekhin
parent d8b8c3b145
commit aa167434e6
2 changed files with 4 additions and 0 deletions

View File

@ -784,6 +784,8 @@ void InfEngineBackendNet::initPlugin(InferenceEngine::ICNNNetwork& net)
continue;
#ifdef _WIN32
std::string libName = "cpu_extension" + suffixes[i] + ".dll";
#elif defined(__APPLE__)
std::string libName = "libcpu_extension" + suffixes[i] + ".dylib";
#else
std::string libName = "libcpu_extension" + suffixes[i] + ".so";
#endif // _WIN32

View File

@ -172,6 +172,8 @@ void runIE(Target target, const std::string& xmlPath, const std::string& binPath
continue;
#ifdef _WIN32
std::string libName = "cpu_extension" + suffixes[i] + ".dll";
#elif defined(__APPLE__)
std::string libName = "libcpu_extension" + suffixes[i] + ".dylib";
#else
std::string libName = "libcpu_extension" + suffixes[i] + ".so";
#endif // _WIN32