1.Remove MULTI test cases 2.Reduce iteration from 50 to 10 (#17551)

Co-authored-by: Chen Peter <peter.chen@intel.com>
This commit is contained in:
guozhong wang 2023-05-25 11:10:02 +08:00 committed by GitHub
parent 9f1757f400
commit b93b863bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 73 deletions

View File

@ -44,43 +44,17 @@ std::vector<Configs> AutoConfigs = {
}
};
std::vector<Configs> MultiConfigs = {
{
{
CommonTestUtils::DEVICE_MULTI + std::string(":") + CommonTestUtils::DEVICE_CPU,
{ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY)}
},
{CommonTestUtils::DEVICE_CPU, {}}
},
{
{
CommonTestUtils::DEVICE_MULTI + std::string(":") + CommonTestUtils::DEVICE_CPU,
{ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT)}
},
{CommonTestUtils::DEVICE_CPU, {}}
}
};
INSTANTIATE_TEST_SUITE_P(BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(10),// inferRequest num
::testing::Values(50),// infer counts
::testing::Values(10),// infer counts
::testing::ValuesIn(configs)),
OVInferConsistencyTest::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(Auto_BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(10),// inferRequest num
::testing::Values(50),// infer counts
::testing::Values(10),// infer counts
::testing::ValuesIn(AutoConfigs)),
OVInferConsistencyTest::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(Multi_BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(10),// inferRequest num
::testing::Values(50),// infer counts
::testing::ValuesIn(MultiConfigs)),
OVInferConsistencyTest::getTestCaseName);
} // namespace

View File

@ -52,33 +52,6 @@ auto AutoConfigs = []() {
{CommonTestUtils::DEVICE_GPU, {}}}};
};
auto MultiConfigs = []() {
return std::vector<Configs>{{{CommonTestUtils::DEVICE_MULTI + std::string(":") + CommonTestUtils::DEVICE_GPU,
{ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY)}},
{CommonTestUtils::DEVICE_GPU, {}}},
{{CommonTestUtils::DEVICE_MULTI + std::string(":") + CommonTestUtils::DEVICE_GPU,
{ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT)}},
{CommonTestUtils::DEVICE_GPU, {}}},
{{CommonTestUtils::DEVICE_MULTI + std::string(":") + CommonTestUtils::DEVICE_GPU + "," +
CommonTestUtils::DEVICE_CPU,
{ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY)}},
{CommonTestUtils::DEVICE_GPU, {}},
{CommonTestUtils::DEVICE_CPU, {}}},
{{CommonTestUtils::DEVICE_MULTI + std::string(":") + CommonTestUtils::DEVICE_GPU + "," +
CommonTestUtils::DEVICE_CPU,
{ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT)}},
{CommonTestUtils::DEVICE_GPU, {}},
{CommonTestUtils::DEVICE_CPU, {}}}};
};
auto MultiBindConfigs = []() {
return std::vector<Configs>{{{CommonTestUtils::DEVICE_MULTI + std::string(":") + CommonTestUtils::DEVICE_GPU + "," +
CommonTestUtils::DEVICE_CPU,
{ov::intel_auto::device_bind_buffer(true)}},
{CommonTestUtils::DEVICE_GPU, {}},
{CommonTestUtils::DEVICE_CPU, {}}}};
};
auto AutoBindConfigs = []() {
return std::vector<Configs>{{{CommonTestUtils::DEVICE_AUTO + std::string(":") + CommonTestUtils::DEVICE_GPU + "," +
CommonTestUtils::DEVICE_CPU,
@ -97,36 +70,21 @@ auto AutoBindConfigs = []() {
INSTANTIATE_TEST_SUITE_P(BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(10),// inferRequest num
::testing::Values(50),// infer counts
::testing::Values(10),// infer counts
::testing::ValuesIn(configs())),
OVInferConsistencyTest::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(Auto_BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(10),// inferRequest num
::testing::Values(50),// infer counts
::testing::Values(10),// infer counts
::testing::ValuesIn(AutoConfigs())),
OVInferConsistencyTest::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(Multi_BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(10),// inferRequest num
::testing::Values(50),// infer counts
::testing::ValuesIn(MultiConfigs())),
OVInferConsistencyTest::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(Auto_Bind_BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(0),// inferRequest num, will use optimal request number if set 0
::testing::Values(100),// infer counts
::testing::Values(10),// infer counts
::testing::ValuesIn(AutoBindConfigs())),
OVInferConsistencyTest::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(Multi_Bind_BehaviorTests, OVInferConsistencyTest,
::testing::Combine(
::testing::Values(0),// inferRequest num, will use optimal request number if set 0
::testing::Values(100),// infer counts
::testing::ValuesIn(MultiBindConfigs())),
OVInferConsistencyTest::getTestCaseName);
} // namespace