Don't use global objects during CPU plugin nodes registration (#8367)

* Load CPU plugin as extension as well

* Fixed linkage issues

* Added static linux build

* Disabled GPU

* Fix for CPU nodes registration

* Disabled GPU

* Disabled GPU

* Disabled GPU

* Disabled GPU

* Disabled HETERO synthetic tests in static case

* Fixed dependencies

* Proper fix
This commit is contained in:
Ilya Lavrenov
2021-11-04 12:39:28 +03:00
committed by GitHub
parent 23c50323eb
commit e14ead8dd3
14 changed files with 208 additions and 102 deletions

View File

@@ -11,6 +11,9 @@
namespace {
using namespace HeteroTests;
// this tests load plugin by library name: this is not available during static linkage
#ifndef OPENVINO_STATIC_LIBRARY
INSTANTIATE_TEST_SUITE_P(smoke_SingleMajorNode, HeteroSyntheticTest,
::testing::Combine(
::testing::Values(std::vector<PluginParameter>{{"TEMPLATE0", "templatePlugin"}, {"TEMPLATE1", "templatePlugin"}}),
@@ -69,4 +72,6 @@ INSTANTIATE_TEST_SUITE_P(nightly_RandomMajorNodes_dynamic_batch, HeteroSynthetic
dynamicBuilders, true))),
HeteroSyntheticTest::getTestCaseName);
#endif // !OPENVINO_STATIC_LIBRARY
} // namespace