add testcase for EXCLUSIVE_AYSNC_REQUESTS when input device is AUTO (#11716)
* add AUTO cpu and gpu testcase for EXCLUSIVE_AYSNC_REQUESTS * add AUTO myriad testcase for EXCLUSIVE_AYSNC_REQUESTS
This commit is contained in:
parent
cd771ed23b
commit
5b75d69712
@ -108,6 +108,13 @@ namespace {
|
||||
{InferenceEngine::PluginConfigParams::KEY_MODEL_PRIORITY, InferenceEngine::PluginConfigParams::MODEL_PRIORITY_LOW}}
|
||||
};
|
||||
|
||||
const std::vector<std::map<std::string, std::string>> ExcluAsyncReqConfigs = {
|
||||
{{InferenceEngine::MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES , CommonTestUtils::DEVICE_CPU},
|
||||
{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::YES}},
|
||||
{{InferenceEngine::MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES , CommonTestUtils::DEVICE_CPU},
|
||||
{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::NO}}
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests, CorrectConfigTests,
|
||||
::testing::Combine(
|
||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||
@ -126,6 +133,12 @@ namespace {
|
||||
::testing::ValuesIn(AutoConfigs)),
|
||||
CorrectConfigTests::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_Auto_BehaviorTests, ExclusiveAsyncReqTests,
|
||||
::testing::Combine(
|
||||
::testing::Values(CommonTestUtils::DEVICE_AUTO),
|
||||
::testing::ValuesIn(ExcluAsyncReqConfigs)),
|
||||
CorrectConfigTests::getTestCaseName);
|
||||
|
||||
const std::vector<std::map<std::string, std::string>> inconfigs = {
|
||||
{{InferenceEngine::PluginConfigParams::KEY_PERFORMANCE_HINT, "DOESN'T EXIST"}},
|
||||
{{InferenceEngine::PluginConfigParams::KEY_PERFORMANCE_HINT, InferenceEngine::PluginConfigParams::LATENCY},
|
||||
|
@ -286,4 +286,16 @@ namespace {
|
||||
::testing::Values(CommonTestUtils::DEVICE_BATCH),
|
||||
::testing::ValuesIn(auto_batch_configs)),
|
||||
CorrectConfigTests::getTestCaseName);
|
||||
|
||||
const std::vector<std::map<std::string, std::string>> ExcluAsyncReqConfigs = {
|
||||
{{InferenceEngine::MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES, CommonTestUtils::DEVICE_GPU},
|
||||
{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::YES}},
|
||||
{{InferenceEngine::MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES, CommonTestUtils::DEVICE_GPU},
|
||||
{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::NO}}};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_Auto_BehaviorTests,
|
||||
ExclusiveAsyncReqTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_AUTO),
|
||||
::testing::ValuesIn(ExcluAsyncReqConfigs)),
|
||||
CorrectConfigTests::getTestCaseName);
|
||||
} // namespace
|
||||
|
@ -11,10 +11,16 @@
|
||||
IE_SUPPRESS_DEPRECATED_START
|
||||
|
||||
namespace {
|
||||
|
||||
using namespace BehaviorTestsDefinitions;
|
||||
using namespace InferenceEngine::PluginConfigParams;
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_Basic,
|
||||
DefaultConfigurationTest,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_MYRIAD),
|
||||
::testing::Values(DefaultParameter{InferenceEngine::MYRIAD_ENABLE_MX_BOOT,
|
||||
CONFIG_VALUE(YES)})),
|
||||
DefaultConfigurationTest::getTestCaseName);
|
||||
|
||||
const std::vector<InferenceEngine::Precision>& getPrecisions() {
|
||||
static const std::vector<InferenceEngine::Precision> precisions = {
|
||||
InferenceEngine::Precision::FP32,
|
||||
@ -237,6 +243,18 @@ INSTANTIATE_TEST_SUITE_P(smoke_Auto_BehaviorTests, CorrectConfigTests,
|
||||
::testing::ValuesIn(getCorrectMultiConfigs())),
|
||||
CorrectConfigTests::getTestCaseName);
|
||||
|
||||
const std::vector<std::map<std::string, std::string>> ExcluAsyncReqConfigs = {
|
||||
{{InferenceEngine::MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES, CommonTestUtils::DEVICE_MYRIAD},
|
||||
{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::YES}},
|
||||
{{InferenceEngine::MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES, CommonTestUtils::DEVICE_MYRIAD},
|
||||
{InferenceEngine::PluginConfigParams::KEY_EXCLUSIVE_ASYNC_REQUESTS, InferenceEngine::PluginConfigParams::NO}}};
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_Auto_BehaviorTests,
|
||||
ExclusiveAsyncReqTests,
|
||||
::testing::Combine(::testing::Values(CommonTestUtils::DEVICE_AUTO),
|
||||
::testing::ValuesIn(ExcluAsyncReqConfigs)),
|
||||
CorrectConfigTests::getTestCaseName);
|
||||
|
||||
const std::vector<std::pair<std::string, InferenceEngine::Parameter>>& getDefaultEntries() {
|
||||
static const std::vector<std::pair<std::string, InferenceEngine::Parameter>> defaultEntries = {
|
||||
{KEY_LOG_LEVEL, {LOG_NONE}},
|
||||
|
@ -191,5 +191,6 @@ using IncorrectConfigSingleOptionTests = BehaviorTestsSingleOption;
|
||||
using IncorrectConfigAPITests = CorrectConfigTests;
|
||||
using CorrectConfigCheck = CorrectConfigTests;
|
||||
using DefaultValuesConfigTests = CorrectConfigTests;
|
||||
using ExclusiveAsyncReqTests = CorrectConfigTests;
|
||||
|
||||
} // namespace BehaviorTestsDefinitions
|
@ -186,4 +186,9 @@ TEST_P(DefaultValuesConfigTests, CanSetDefaultValueBackToPlugin) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST_P(ExclusiveAsyncReqTests, excluAsyncReqTests) {
|
||||
ASSERT_NO_THROW(ie->SetConfig(configuration, targetDevice));
|
||||
ASSERT_NO_THROW(ie->LoadNetwork(cnnNet, targetDevice, configuration));
|
||||
}
|
||||
|
||||
} // namespace BehaviorTestsDefinitions
|
||||
|
Loading…
Reference in New Issue
Block a user